@livetiles/reach-plugin-types 0.5.0-preview.950 → 0.5.0-preview.952
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 +98 -75
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -3191,12 +3191,18 @@ declare module "libs/reach/util/common/src/theme/theme2/typography" {
|
|
|
3191
3191
|
readonly fontSize: "14px";
|
|
3192
3192
|
readonly lineHeight: "14px";
|
|
3193
3193
|
};
|
|
3194
|
-
readonly
|
|
3194
|
+
readonly caption1: {
|
|
3195
3195
|
readonly fontFamily: "Mulish, Arial, sans-serif !important";
|
|
3196
3196
|
readonly fontSize: "12px";
|
|
3197
3197
|
readonly letterSpacing: "0.18px";
|
|
3198
3198
|
readonly lineHeight: "14px";
|
|
3199
3199
|
};
|
|
3200
|
+
readonly caption2: {
|
|
3201
|
+
readonly fontFamily: "Mulish, Arial, sans-serif !important";
|
|
3202
|
+
readonly fontSize: "10px";
|
|
3203
|
+
readonly letterSpacing: "0.18px";
|
|
3204
|
+
readonly lineHeight: "12px";
|
|
3205
|
+
};
|
|
3200
3206
|
readonly h1: {
|
|
3201
3207
|
readonly fontFamily: "Anybody, Arial, sans-serif !important";
|
|
3202
3208
|
readonly fontSize: "32px";
|
|
@@ -3374,12 +3380,18 @@ declare module "libs/reach/util/common/src/theme/theme2/index" {
|
|
|
3374
3380
|
readonly fontSize: "14px";
|
|
3375
3381
|
readonly lineHeight: "14px";
|
|
3376
3382
|
};
|
|
3377
|
-
readonly
|
|
3383
|
+
readonly caption1: {
|
|
3378
3384
|
readonly fontFamily: "Mulish, Arial, sans-serif !important";
|
|
3379
3385
|
readonly fontSize: "12px";
|
|
3380
3386
|
readonly letterSpacing: "0.18px";
|
|
3381
3387
|
readonly lineHeight: "14px";
|
|
3382
3388
|
};
|
|
3389
|
+
readonly caption2: {
|
|
3390
|
+
readonly fontFamily: "Mulish, Arial, sans-serif !important";
|
|
3391
|
+
readonly fontSize: "10px";
|
|
3392
|
+
readonly letterSpacing: "0.18px";
|
|
3393
|
+
readonly lineHeight: "12px";
|
|
3394
|
+
};
|
|
3383
3395
|
readonly h1: {
|
|
3384
3396
|
readonly fontFamily: "Anybody, Arial, sans-serif !important";
|
|
3385
3397
|
readonly fontSize: "32px";
|
|
@@ -3575,12 +3587,18 @@ declare module "libs/reach/util/common/src/theme/ThemeService" {
|
|
|
3575
3587
|
readonly fontSize: "14px";
|
|
3576
3588
|
readonly lineHeight: "14px";
|
|
3577
3589
|
};
|
|
3578
|
-
readonly
|
|
3590
|
+
readonly caption1: {
|
|
3579
3591
|
readonly fontFamily: "Mulish, Arial, sans-serif !important";
|
|
3580
3592
|
readonly fontSize: "12px";
|
|
3581
3593
|
readonly letterSpacing: "0.18px";
|
|
3582
3594
|
readonly lineHeight: "14px";
|
|
3583
3595
|
};
|
|
3596
|
+
readonly caption2: {
|
|
3597
|
+
readonly fontFamily: "Mulish, Arial, sans-serif !important";
|
|
3598
|
+
readonly fontSize: "10px";
|
|
3599
|
+
readonly letterSpacing: "0.18px";
|
|
3600
|
+
readonly lineHeight: "12px";
|
|
3601
|
+
};
|
|
3584
3602
|
readonly h1: {
|
|
3585
3603
|
readonly fontFamily: "Anybody, Arial, sans-serif !important";
|
|
3586
3604
|
readonly fontSize: "32px";
|
|
@@ -5951,6 +5969,7 @@ declare module "libs/reach/ui/common/src/reach-2/icons/Icons" {
|
|
|
5951
5969
|
export { ReactComponent as ManageContentIcon } from './assets/manageContent.svg';
|
|
5952
5970
|
export { ReactComponent as MentionActiveIcon } from './assets/mention-active.svg';
|
|
5953
5971
|
export { ReactComponent as MentionIcon } from './assets/mention.svg';
|
|
5972
|
+
export { ReactComponent as MenuActiveIcon } from './assets/menu-active.svg';
|
|
5954
5973
|
export { ReactComponent as MenuIcon } from './assets/menu.svg';
|
|
5955
5974
|
export { ReactComponent as MenuDotsIcon } from './assets/menuDots.svg';
|
|
5956
5975
|
export { ReactComponent as MessagingActiveIcon } from './assets/messaging-active.svg';
|
|
@@ -6045,11 +6064,11 @@ declare module "libs/reach/ui/common/src/reach-2/buttons/IconActionButton" {
|
|
|
6045
6064
|
import { MouseEventHandler, SVGProps } from 'react';
|
|
6046
6065
|
import { IconProps } from "libs/reach/ui/common/src/reach-2/Icon";
|
|
6047
6066
|
export interface IconActionButtonProps extends Omit<IconProps, 'size'> {
|
|
6048
|
-
secondarySVG?: SVGProps<SVGElement>;
|
|
6049
|
-
iconSize?: number;
|
|
6050
|
-
onClick: MouseEventHandler<HTMLButtonElement>;
|
|
6051
6067
|
disabled?: boolean;
|
|
6052
6068
|
domIdentifier?: string;
|
|
6069
|
+
iconSize?: number;
|
|
6070
|
+
onClick: MouseEventHandler<HTMLButtonElement>;
|
|
6071
|
+
secondarySVG?: SVGProps<SVGElement>;
|
|
6053
6072
|
}
|
|
6054
6073
|
export const IconActionButton: import("react").ForwardRefExoticComponent<IconActionButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
6055
6074
|
}
|
|
@@ -6112,15 +6131,76 @@ declare module "libs/reach/ui/common/src/reach-2/buttons/FloatingActionButton" {
|
|
|
6112
6131
|
const FloatingActionButton: FC<FloatingActionButtonProps>;
|
|
6113
6132
|
export default FloatingActionButton;
|
|
6114
6133
|
}
|
|
6134
|
+
declare module "libs/reach/ui/common/src/reach-2/typography/Typography" {
|
|
6135
|
+
import { ComponentPropsWithoutRef, ElementType, PropsWithChildren } from 'react';
|
|
6136
|
+
const variantMapping: {
|
|
6137
|
+
readonly body1: "span";
|
|
6138
|
+
readonly body2: "span";
|
|
6139
|
+
readonly buttonLabel1: "span";
|
|
6140
|
+
readonly buttonLabel2: "span";
|
|
6141
|
+
readonly caption1: "span";
|
|
6142
|
+
readonly caption2: "span";
|
|
6143
|
+
readonly h1: "h1";
|
|
6144
|
+
readonly h2: "h2";
|
|
6145
|
+
readonly h3: "h3";
|
|
6146
|
+
readonly h4: "h4";
|
|
6147
|
+
readonly inherit: "span";
|
|
6148
|
+
readonly subtitle1: "span";
|
|
6149
|
+
readonly subtitle2: "span";
|
|
6150
|
+
};
|
|
6151
|
+
export interface ITypographyProps<T extends ElementType = typeof variantMapping['body1']> {
|
|
6152
|
+
/**
|
|
6153
|
+
* Set the text alignment.
|
|
6154
|
+
* @default 'inherit'
|
|
6155
|
+
*/
|
|
6156
|
+
align?: 'center' | 'justify' | 'left' | 'right';
|
|
6157
|
+
/**
|
|
6158
|
+
* The HTML element to use as the container for the text (overrides the variant default HTML element).
|
|
6159
|
+
* @default undefined
|
|
6160
|
+
*/
|
|
6161
|
+
as?: T;
|
|
6162
|
+
/**
|
|
6163
|
+
* Set the font decoration/style.
|
|
6164
|
+
* @default undefined
|
|
6165
|
+
*/
|
|
6166
|
+
decoration?: 'line-through' | 'underline';
|
|
6167
|
+
/**
|
|
6168
|
+
* Whether text should be italic
|
|
6169
|
+
* @default false
|
|
6170
|
+
*/
|
|
6171
|
+
italic?: boolean;
|
|
6172
|
+
/**
|
|
6173
|
+
* If `true`, the text will not wrap, but instead will truncate with a text overflow ellipsis.
|
|
6174
|
+
*
|
|
6175
|
+
* Note that text overflow can only happen with block or inline-block level elements
|
|
6176
|
+
* (the element needs to have a width in order to overflow).
|
|
6177
|
+
* @default false
|
|
6178
|
+
*/
|
|
6179
|
+
noWrap?: boolean;
|
|
6180
|
+
/**
|
|
6181
|
+
* Set the typography variant.
|
|
6182
|
+
* @default 'body1'
|
|
6183
|
+
*/
|
|
6184
|
+
variant?: keyof typeof variantMapping;
|
|
6185
|
+
/**
|
|
6186
|
+
* Set the font weight.
|
|
6187
|
+
* @default 'normal'
|
|
6188
|
+
*/
|
|
6189
|
+
weight?: 'bold' | 'normal' | 'semibold';
|
|
6190
|
+
}
|
|
6191
|
+
type TTypographyOverridenProps<T extends ElementType> = PropsWithChildren<ITypographyProps<T>> & Omit<ComponentPropsWithoutRef<T>, keyof ITypographyProps<T>>;
|
|
6192
|
+
const Typography: <T extends ElementType<any> = "span">(props: TTypographyOverridenProps<T>) => JSX.Element;
|
|
6193
|
+
export default Typography;
|
|
6194
|
+
}
|
|
6115
6195
|
declare module "libs/reach/ui/common/src/reach-2/buttons/ProfileButton" {
|
|
6116
6196
|
import { FC } from 'react';
|
|
6117
6197
|
import { AvatarSize } from "libs/reach/ui/common/src/reach-2/avatar/index";
|
|
6118
|
-
|
|
6198
|
+
interface IProfileButtonProps {
|
|
6119
6199
|
className?: string;
|
|
6120
|
-
labelDirection?: 'left' | 'right';
|
|
6121
6200
|
showLabel?: boolean;
|
|
6122
6201
|
size?: AvatarSize;
|
|
6123
|
-
}
|
|
6202
|
+
}
|
|
6203
|
+
const ProfileButton: FC<IProfileButtonProps>;
|
|
6124
6204
|
export default ProfileButton;
|
|
6125
6205
|
}
|
|
6126
6206
|
declare module "libs/reach/ui/common/src/reach-2/buttons/index" {
|
|
@@ -6269,11 +6349,13 @@ declare module "libs/reach/ui/common/src/reach-2/surfaces/ConfirmationDialog" {
|
|
|
6269
6349
|
}
|
|
6270
6350
|
declare module "libs/reach/ui/common/src/reach-2/surfaces/BasePopover" {
|
|
6271
6351
|
import { FC } from 'react';
|
|
6352
|
+
import { PopoverContentProps } from '@radix-ui/react-popover';
|
|
6272
6353
|
export interface BasePopoverProps {
|
|
6273
6354
|
align?: 'start' | 'center' | 'end';
|
|
6274
6355
|
alignOffset?: number;
|
|
6275
6356
|
anchor?: JSX.Element;
|
|
6276
6357
|
className?: string;
|
|
6358
|
+
collisionPadding?: PopoverContentProps['collisionPadding'];
|
|
6277
6359
|
isOpen?: boolean;
|
|
6278
6360
|
onOpenChange?: (open: boolean) => void;
|
|
6279
6361
|
side?: 'top' | 'left' | 'bottom' | 'right';
|
|
@@ -6311,66 +6393,6 @@ declare module "libs/reach/ui/common/src/reach-2/TextField" {
|
|
|
6311
6393
|
const TextField: FC<ITextFieldProps>;
|
|
6312
6394
|
export default TextField;
|
|
6313
6395
|
}
|
|
6314
|
-
declare module "libs/reach/ui/common/src/reach-2/typography/Typography" {
|
|
6315
|
-
import { ComponentPropsWithoutRef, ElementType, PropsWithChildren } from 'react';
|
|
6316
|
-
const variantMapping: {
|
|
6317
|
-
readonly body1: "span";
|
|
6318
|
-
readonly body2: "span";
|
|
6319
|
-
readonly buttonLabel1: "span";
|
|
6320
|
-
readonly buttonLabel2: "span";
|
|
6321
|
-
readonly caption: "span";
|
|
6322
|
-
readonly h1: "h1";
|
|
6323
|
-
readonly h2: "h2";
|
|
6324
|
-
readonly h3: "h3";
|
|
6325
|
-
readonly h4: "h4";
|
|
6326
|
-
readonly inherit: "span";
|
|
6327
|
-
readonly subtitle1: "span";
|
|
6328
|
-
readonly subtitle2: "span";
|
|
6329
|
-
};
|
|
6330
|
-
export interface ITypographyProps<T extends ElementType = typeof variantMapping['body1']> {
|
|
6331
|
-
/**
|
|
6332
|
-
* Set the text alignment.
|
|
6333
|
-
* @default 'inherit'
|
|
6334
|
-
*/
|
|
6335
|
-
align?: 'center' | 'justify' | 'left' | 'right';
|
|
6336
|
-
/**
|
|
6337
|
-
* The HTML element to use as the container for the text (overrides the variant default HTML element).
|
|
6338
|
-
* @default undefined
|
|
6339
|
-
*/
|
|
6340
|
-
as?: T;
|
|
6341
|
-
/**
|
|
6342
|
-
* Set the font decoration/style.
|
|
6343
|
-
* @default undefined
|
|
6344
|
-
*/
|
|
6345
|
-
decoration?: 'line-through' | 'underline';
|
|
6346
|
-
/**
|
|
6347
|
-
* Whether text should be italic
|
|
6348
|
-
* @default false
|
|
6349
|
-
*/
|
|
6350
|
-
italic?: boolean;
|
|
6351
|
-
/**
|
|
6352
|
-
* If `true`, the text will not wrap, but instead will truncate with a text overflow ellipsis.
|
|
6353
|
-
*
|
|
6354
|
-
* Note that text overflow can only happen with block or inline-block level elements
|
|
6355
|
-
* (the element needs to have a width in order to overflow).
|
|
6356
|
-
* @default false
|
|
6357
|
-
*/
|
|
6358
|
-
noWrap?: boolean;
|
|
6359
|
-
/**
|
|
6360
|
-
* Set the typography variant.
|
|
6361
|
-
* @default 'body1'
|
|
6362
|
-
*/
|
|
6363
|
-
variant?: keyof typeof variantMapping;
|
|
6364
|
-
/**
|
|
6365
|
-
* Set the font weight.
|
|
6366
|
-
* @default 'normal'
|
|
6367
|
-
*/
|
|
6368
|
-
weight?: 'bold' | 'normal' | 'semibold';
|
|
6369
|
-
}
|
|
6370
|
-
type TTypographyOverridenProps<T extends ElementType> = PropsWithChildren<ITypographyProps<T>> & Omit<ComponentPropsWithoutRef<T>, keyof ITypographyProps<T>>;
|
|
6371
|
-
const Typography: <T extends ElementType<any> = "span">(props: TTypographyOverridenProps<T>) => JSX.Element;
|
|
6372
|
-
export default Typography;
|
|
6373
|
-
}
|
|
6374
6396
|
declare module "libs/reach/ui/common/src/reach-2/utils" {
|
|
6375
6397
|
export function getNormalizedPercentageBasedOnDeviceHeight(heightToConvert: number, safeArea?: number, fullyExpandThreshold?: number): number;
|
|
6376
6398
|
export function useNormalizedBreakpointValuesBasedOnDeviceHeight(heightToConvert: number, safeArea?: number, fullyExpandThreshold?: number): {
|
|
@@ -11680,10 +11702,10 @@ declare module "libs/reach/feature/content/src/reach-2/buttons/feedback/ContextM
|
|
|
11680
11702
|
export const ContextMenuButton: FC<{
|
|
11681
11703
|
buttons: (dismiss: () => void) => JSX.Element;
|
|
11682
11704
|
className?: string;
|
|
11683
|
-
drawerHeight?: number;
|
|
11684
11705
|
disabled?: boolean;
|
|
11685
|
-
|
|
11706
|
+
drawerHeight?: number;
|
|
11686
11707
|
onDismiss?: () => void;
|
|
11708
|
+
size?: number;
|
|
11687
11709
|
}>;
|
|
11688
11710
|
export const ContextMenuOptionsStyles: import("styled-components").FlattenSimpleInterpolation;
|
|
11689
11711
|
}
|
|
@@ -11821,12 +11843,13 @@ declare module "libs/reach/feature/content/src/reach-2/buttons/feedback/ShareLin
|
|
|
11821
11843
|
}>;
|
|
11822
11844
|
}
|
|
11823
11845
|
declare module "libs/reach/feature/content/src/reach-2/buttons/feedback/ShareButton" {
|
|
11824
|
-
import {
|
|
11825
|
-
|
|
11846
|
+
import { SVGProps } from 'react';
|
|
11847
|
+
interface IShareButtonProps {
|
|
11848
|
+
className?: string;
|
|
11826
11849
|
onClick: () => void;
|
|
11827
11850
|
secondarySVG?: SVGProps<SVGElement>;
|
|
11828
|
-
|
|
11829
|
-
|
|
11851
|
+
}
|
|
11852
|
+
export const ShareButton: import("react").ForwardRefExoticComponent<IShareButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
11830
11853
|
}
|
|
11831
11854
|
declare module "libs/reach/feature/content/src/reach-2/common/detail/DetailViewContextMenu" {
|
|
11832
11855
|
import { FC } from 'react';
|