@livetiles/reach-plugin-types 0.5.0-preview.995 → 0.5.0-preview.997
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 +212 -192
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -5887,6 +5887,71 @@ declare module "libs/reach/ui/common/src/reach-2/DateTimeDisplay" {
|
|
|
5887
5887
|
}
|
|
5888
5888
|
export const DateTimeDisplay: FC<Props>;
|
|
5889
5889
|
}
|
|
5890
|
+
declare module "libs/reach/ui/common/src/reach-2/assets/Assets" {
|
|
5891
|
+
export { ReactComponent as Logo } from './logo.svg';
|
|
5892
|
+
export { ReactComponent as Conversation } from './conversations.svg';
|
|
5893
|
+
export { default as Background } from './background.svg';
|
|
5894
|
+
}
|
|
5895
|
+
declare module "libs/reach/ui/common/src/reach-2/assets/index" {
|
|
5896
|
+
export * from "libs/reach/ui/common/src/reach-2/assets/Assets";
|
|
5897
|
+
}
|
|
5898
|
+
declare module "libs/reach/ui/common/src/reach-2/avatar/Avatar" {
|
|
5899
|
+
import { FC } from 'react';
|
|
5900
|
+
export enum AvatarSize {
|
|
5901
|
+
xxs = 0,
|
|
5902
|
+
xs = 1,
|
|
5903
|
+
sm = 2,
|
|
5904
|
+
md = 3,
|
|
5905
|
+
lg = 4,
|
|
5906
|
+
xl = 5
|
|
5907
|
+
}
|
|
5908
|
+
interface IProps {
|
|
5909
|
+
backgroundColor?: string;
|
|
5910
|
+
className?: string;
|
|
5911
|
+
displayName: string;
|
|
5912
|
+
noInitials?: boolean;
|
|
5913
|
+
size?: AvatarSize;
|
|
5914
|
+
tenantId?: string;
|
|
5915
|
+
userPrincipalName?: string;
|
|
5916
|
+
}
|
|
5917
|
+
const Avatar: FC<IProps>;
|
|
5918
|
+
export default Avatar;
|
|
5919
|
+
}
|
|
5920
|
+
declare module "libs/reach/ui/common/src/reach-2/avatar/GroupAvatar" {
|
|
5921
|
+
import { FC } from 'react';
|
|
5922
|
+
import { AvatarSize } from "libs/reach/ui/common/src/reach-2/avatar/Avatar";
|
|
5923
|
+
export interface AvatarUser {
|
|
5924
|
+
displayName?: string;
|
|
5925
|
+
userPrincipalName?: string;
|
|
5926
|
+
}
|
|
5927
|
+
interface CommentsGroupAvatarProps {
|
|
5928
|
+
avatarsLimit?: number;
|
|
5929
|
+
avatarsSize?: AvatarSize;
|
|
5930
|
+
users: AvatarUser[];
|
|
5931
|
+
}
|
|
5932
|
+
const GroupAvatar: FC<CommentsGroupAvatarProps>;
|
|
5933
|
+
export default GroupAvatar;
|
|
5934
|
+
}
|
|
5935
|
+
declare module "libs/reach/ui/common/src/reach-2/avatar/Persona" {
|
|
5936
|
+
import { FC } from 'react';
|
|
5937
|
+
import { AvatarSize } from "libs/reach/ui/common/src/reach-2/avatar/Avatar";
|
|
5938
|
+
interface IProps {
|
|
5939
|
+
className?: string;
|
|
5940
|
+
displayName: string;
|
|
5941
|
+
size?: AvatarSize.sm | AvatarSize.md | AvatarSize.lg;
|
|
5942
|
+
subtitle?: string | JSX.Element;
|
|
5943
|
+
title: string;
|
|
5944
|
+
userPrincipalName: string;
|
|
5945
|
+
}
|
|
5946
|
+
const Persona: FC<IProps>;
|
|
5947
|
+
export default Persona;
|
|
5948
|
+
}
|
|
5949
|
+
declare module "libs/reach/ui/common/src/reach-2/avatar/index" {
|
|
5950
|
+
export { default as Avatar2, AvatarSize } from "libs/reach/ui/common/src/reach-2/avatar/Avatar";
|
|
5951
|
+
export { default as GroupAvatar2 } from "libs/reach/ui/common/src/reach-2/avatar/GroupAvatar";
|
|
5952
|
+
export type { AvatarUser } from "libs/reach/ui/common/src/reach-2/avatar/GroupAvatar";
|
|
5953
|
+
export { default as Persona } from "libs/reach/ui/common/src/reach-2/avatar/Persona";
|
|
5954
|
+
}
|
|
5890
5955
|
declare module "libs/reach/ui/common/src/reach-2/icons/Icon" {
|
|
5891
5956
|
import { FC, SVGProps } from 'react';
|
|
5892
5957
|
interface IconProps {
|
|
@@ -5927,6 +5992,7 @@ declare module "libs/reach/ui/common/src/reach-2/icons/Icons" {
|
|
|
5927
5992
|
export { ReactComponent as DocumentActiveIcon } from './assets/document-active.svg';
|
|
5928
5993
|
export { ReactComponent as DocumentIcon } from './assets/document.svg';
|
|
5929
5994
|
export { ReactComponent as DoneIcon } from './assets/done.svg';
|
|
5995
|
+
export { default as DragGalleryIcon } from './assets/dragGallery.svg';
|
|
5930
5996
|
export { ReactComponent as EditActiveIcon } from './assets/edit-active.svg';
|
|
5931
5997
|
export { ReactComponent as EditIcon } from './assets/edit.svg';
|
|
5932
5998
|
export { ReactComponent as EmojiActiveIcon } from './assets/emoji-active.svg';
|
|
@@ -6010,27 +6076,6 @@ declare module "libs/reach/ui/common/src/reach-2/icons/index" {
|
|
|
6010
6076
|
export { default as Icon } from "libs/reach/ui/common/src/reach-2/icons/Icon";
|
|
6011
6077
|
export * from "libs/reach/ui/common/src/reach-2/icons/Icons";
|
|
6012
6078
|
}
|
|
6013
|
-
declare module "libs/reach/ui/common/src/reach-2/surfaces/BasePopover" {
|
|
6014
|
-
import { PopoverContentProps } from '@radix-ui/react-popover';
|
|
6015
|
-
import { FC } from 'react';
|
|
6016
|
-
export type BasePopoverAlignType = 'start' | 'center' | 'end';
|
|
6017
|
-
export type BasePopoverSideType = 'top' | 'left' | 'bottom' | 'right';
|
|
6018
|
-
export interface BasePopoverProps {
|
|
6019
|
-
align?: BasePopoverAlignType;
|
|
6020
|
-
alignOffset?: number;
|
|
6021
|
-
anchor?: JSX.Element;
|
|
6022
|
-
className?: string;
|
|
6023
|
-
collisionPadding?: PopoverContentProps['collisionPadding'];
|
|
6024
|
-
isOpen?: boolean;
|
|
6025
|
-
onCloseAutoFocus?: (event: Event) => void;
|
|
6026
|
-
onOpenAutoFocus?: (event: Event) => void;
|
|
6027
|
-
onOpenChange?: (open: boolean) => void;
|
|
6028
|
-
side?: BasePopoverSideType;
|
|
6029
|
-
sideOffset?: number;
|
|
6030
|
-
trigger?: JSX.Element;
|
|
6031
|
-
}
|
|
6032
|
-
export const BasePopover: FC<BasePopoverProps>;
|
|
6033
|
-
}
|
|
6034
6079
|
declare module "libs/reach/ui/common/src/reach-2/progress/Skeleton" {
|
|
6035
6080
|
import { FC } from 'react';
|
|
6036
6081
|
export const Skeleton: FC<{
|
|
@@ -6114,170 +6159,6 @@ declare module "libs/reach/ui/common/src/reach-2/buttons/BaseIconButton" {
|
|
|
6114
6159
|
const BaseIconButton: import("react").ForwardRefExoticComponent<BaseIconButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
6115
6160
|
export default BaseIconButton;
|
|
6116
6161
|
}
|
|
6117
|
-
declare module "libs/reach/ui/common/src/reach-2/typography/Typography" {
|
|
6118
|
-
import { ComponentPropsWithoutRef, ElementType, PropsWithChildren } from 'react';
|
|
6119
|
-
const variantMapping: {
|
|
6120
|
-
readonly body1: "span";
|
|
6121
|
-
readonly body2: "span";
|
|
6122
|
-
readonly buttonLabel1: "span";
|
|
6123
|
-
readonly buttonLabel2: "span";
|
|
6124
|
-
readonly caption1: "span";
|
|
6125
|
-
readonly caption2: "span";
|
|
6126
|
-
readonly h1: "h1";
|
|
6127
|
-
readonly h2: "h2";
|
|
6128
|
-
readonly h3: "h3";
|
|
6129
|
-
readonly h4: "h4";
|
|
6130
|
-
readonly inherit: "span";
|
|
6131
|
-
readonly subtitle1: "span";
|
|
6132
|
-
readonly subtitle2: "span";
|
|
6133
|
-
};
|
|
6134
|
-
export interface ITypographyProps<T extends ElementType = typeof variantMapping['body1']> {
|
|
6135
|
-
/**
|
|
6136
|
-
* Set the text alignment.
|
|
6137
|
-
* @default 'inherit'
|
|
6138
|
-
*/
|
|
6139
|
-
align?: 'center' | 'justify' | 'left' | 'right';
|
|
6140
|
-
/**
|
|
6141
|
-
* The HTML element to use as the container for the text (overrides the variant default HTML element).
|
|
6142
|
-
* @default undefined
|
|
6143
|
-
*/
|
|
6144
|
-
as?: T;
|
|
6145
|
-
/**
|
|
6146
|
-
* Set the font decoration/style.
|
|
6147
|
-
* @default undefined
|
|
6148
|
-
*/
|
|
6149
|
-
decoration?: 'line-through' | 'underline';
|
|
6150
|
-
/**
|
|
6151
|
-
* Whether text should be italic
|
|
6152
|
-
* @default false
|
|
6153
|
-
*/
|
|
6154
|
-
italic?: boolean;
|
|
6155
|
-
/**
|
|
6156
|
-
* If `true`, the text will not wrap, but instead will truncate with a text overflow ellipsis.
|
|
6157
|
-
*
|
|
6158
|
-
* Note that text overflow can only happen with block or inline-block level elements
|
|
6159
|
-
* (the element needs to have a width in order to overflow).
|
|
6160
|
-
* @default false
|
|
6161
|
-
*/
|
|
6162
|
-
noWrap?: boolean;
|
|
6163
|
-
/**
|
|
6164
|
-
* Set the typography variant.
|
|
6165
|
-
* @default 'body1'
|
|
6166
|
-
*/
|
|
6167
|
-
variant?: keyof typeof variantMapping;
|
|
6168
|
-
/**
|
|
6169
|
-
* Set the font weight.
|
|
6170
|
-
* @default 'normal'
|
|
6171
|
-
*/
|
|
6172
|
-
weight?: 'bold' | 'normal' | 'semibold';
|
|
6173
|
-
}
|
|
6174
|
-
type TTypographyOverridenProps<T extends ElementType> = PropsWithChildren<ITypographyProps<T>> & Omit<ComponentPropsWithoutRef<T>, keyof ITypographyProps<T>>;
|
|
6175
|
-
const Typography: <T extends ElementType<any> = "span">(props: TTypographyOverridenProps<T>) => JSX.Element;
|
|
6176
|
-
export default Typography;
|
|
6177
|
-
}
|
|
6178
|
-
declare module "libs/reach/ui/common/src/reach-2/tags/Tag" {
|
|
6179
|
-
import React, { SVGProps } from 'react';
|
|
6180
|
-
interface TagProps {
|
|
6181
|
-
className?: string;
|
|
6182
|
-
error?: boolean;
|
|
6183
|
-
icon?: SVGProps<SVGElement>;
|
|
6184
|
-
label: string;
|
|
6185
|
-
onClick?: () => void;
|
|
6186
|
-
onClose?: () => void;
|
|
6187
|
-
}
|
|
6188
|
-
const Tag: React.FC<TagProps>;
|
|
6189
|
-
export default Tag;
|
|
6190
|
-
}
|
|
6191
|
-
declare module "libs/reach/ui/common/src/reach-2/Select" {
|
|
6192
|
-
import React from 'react';
|
|
6193
|
-
export interface SelectItemProps {
|
|
6194
|
-
id: string;
|
|
6195
|
-
label: string;
|
|
6196
|
-
}
|
|
6197
|
-
interface SelectProps {
|
|
6198
|
-
allowCreation?: boolean;
|
|
6199
|
-
classname?: string;
|
|
6200
|
-
disabled?: boolean;
|
|
6201
|
-
errorItems?: string[];
|
|
6202
|
-
emptyLabel?: string;
|
|
6203
|
-
errorLabel?: string;
|
|
6204
|
-
multiple?: boolean;
|
|
6205
|
-
onAddItem?: (id: string) => void;
|
|
6206
|
-
onInputChange?: (value: string) => void;
|
|
6207
|
-
onRemoveItem?: (id: string) => void;
|
|
6208
|
-
options: SelectItemProps[];
|
|
6209
|
-
placeholder?: string;
|
|
6210
|
-
searchable?: boolean;
|
|
6211
|
-
values?: SelectItemProps[];
|
|
6212
|
-
}
|
|
6213
|
-
const Select: React.FC<SelectProps>;
|
|
6214
|
-
export default Select;
|
|
6215
|
-
}
|
|
6216
|
-
declare module "libs/reach/ui/common/src/reach-2/assets/Assets" {
|
|
6217
|
-
export { ReactComponent as Logo } from './logo.svg';
|
|
6218
|
-
export { ReactComponent as Conversation } from './conversations.svg';
|
|
6219
|
-
export { default as Background } from './background.svg';
|
|
6220
|
-
}
|
|
6221
|
-
declare module "libs/reach/ui/common/src/reach-2/assets/index" {
|
|
6222
|
-
export * from "libs/reach/ui/common/src/reach-2/assets/Assets";
|
|
6223
|
-
}
|
|
6224
|
-
declare module "libs/reach/ui/common/src/reach-2/avatar/Avatar" {
|
|
6225
|
-
import { FC } from 'react';
|
|
6226
|
-
export enum AvatarSize {
|
|
6227
|
-
xxs = 0,
|
|
6228
|
-
xs = 1,
|
|
6229
|
-
sm = 2,
|
|
6230
|
-
md = 3,
|
|
6231
|
-
lg = 4,
|
|
6232
|
-
xl = 5
|
|
6233
|
-
}
|
|
6234
|
-
interface IProps {
|
|
6235
|
-
backgroundColor?: string;
|
|
6236
|
-
className?: string;
|
|
6237
|
-
displayName: string;
|
|
6238
|
-
noInitials?: boolean;
|
|
6239
|
-
size?: AvatarSize;
|
|
6240
|
-
tenantId?: string;
|
|
6241
|
-
userPrincipalName?: string;
|
|
6242
|
-
}
|
|
6243
|
-
const Avatar: FC<IProps>;
|
|
6244
|
-
export default Avatar;
|
|
6245
|
-
}
|
|
6246
|
-
declare module "libs/reach/ui/common/src/reach-2/avatar/GroupAvatar" {
|
|
6247
|
-
import { FC } from 'react';
|
|
6248
|
-
import { AvatarSize } from "libs/reach/ui/common/src/reach-2/avatar/Avatar";
|
|
6249
|
-
export interface AvatarUser {
|
|
6250
|
-
displayName?: string;
|
|
6251
|
-
userPrincipalName?: string;
|
|
6252
|
-
}
|
|
6253
|
-
interface CommentsGroupAvatarProps {
|
|
6254
|
-
avatarsLimit?: number;
|
|
6255
|
-
avatarsSize?: AvatarSize;
|
|
6256
|
-
users: AvatarUser[];
|
|
6257
|
-
}
|
|
6258
|
-
const GroupAvatar: FC<CommentsGroupAvatarProps>;
|
|
6259
|
-
export default GroupAvatar;
|
|
6260
|
-
}
|
|
6261
|
-
declare module "libs/reach/ui/common/src/reach-2/avatar/Persona" {
|
|
6262
|
-
import { FC } from 'react';
|
|
6263
|
-
import { AvatarSize } from "libs/reach/ui/common/src/reach-2/avatar/Avatar";
|
|
6264
|
-
interface IProps {
|
|
6265
|
-
className?: string;
|
|
6266
|
-
displayName: string;
|
|
6267
|
-
size?: AvatarSize.sm | AvatarSize.md | AvatarSize.lg;
|
|
6268
|
-
subtitle?: string | JSX.Element;
|
|
6269
|
-
title: string;
|
|
6270
|
-
userPrincipalName: string;
|
|
6271
|
-
}
|
|
6272
|
-
const Persona: FC<IProps>;
|
|
6273
|
-
export default Persona;
|
|
6274
|
-
}
|
|
6275
|
-
declare module "libs/reach/ui/common/src/reach-2/avatar/index" {
|
|
6276
|
-
export { default as Avatar2, AvatarSize } from "libs/reach/ui/common/src/reach-2/avatar/Avatar";
|
|
6277
|
-
export { default as GroupAvatar2 } from "libs/reach/ui/common/src/reach-2/avatar/GroupAvatar";
|
|
6278
|
-
export type { AvatarUser } from "libs/reach/ui/common/src/reach-2/avatar/GroupAvatar";
|
|
6279
|
-
export { default as Persona } from "libs/reach/ui/common/src/reach-2/avatar/Persona";
|
|
6280
|
-
}
|
|
6281
6162
|
declare module "libs/reach/ui/common/src/reach-2/buttons/IconButton" {
|
|
6282
6163
|
import { MouseEventHandler, SVGProps } from 'react';
|
|
6283
6164
|
export type IconButtonSizeType = 'Large' | 'Medium' | 'Small';
|
|
@@ -6378,6 +6259,67 @@ declare module "libs/reach/ui/common/src/reach-2/buttons/index" {
|
|
|
6378
6259
|
export { default as ProfileButton } from "libs/reach/ui/common/src/reach-2/buttons/ProfileButton";
|
|
6379
6260
|
export * from "libs/reach/ui/common/src/reach-2/buttons/StandardButton";
|
|
6380
6261
|
}
|
|
6262
|
+
declare module "libs/reach/ui/common/src/reach-2/typography/Typography" {
|
|
6263
|
+
import { ComponentPropsWithoutRef, ElementType, PropsWithChildren } from 'react';
|
|
6264
|
+
const variantMapping: {
|
|
6265
|
+
readonly body1: "span";
|
|
6266
|
+
readonly body2: "span";
|
|
6267
|
+
readonly buttonLabel1: "span";
|
|
6268
|
+
readonly buttonLabel2: "span";
|
|
6269
|
+
readonly caption1: "span";
|
|
6270
|
+
readonly caption2: "span";
|
|
6271
|
+
readonly h1: "h1";
|
|
6272
|
+
readonly h2: "h2";
|
|
6273
|
+
readonly h3: "h3";
|
|
6274
|
+
readonly h4: "h4";
|
|
6275
|
+
readonly inherit: "span";
|
|
6276
|
+
readonly subtitle1: "span";
|
|
6277
|
+
readonly subtitle2: "span";
|
|
6278
|
+
};
|
|
6279
|
+
export interface ITypographyProps<T extends ElementType = typeof variantMapping['body1']> {
|
|
6280
|
+
/**
|
|
6281
|
+
* Set the text alignment.
|
|
6282
|
+
* @default 'inherit'
|
|
6283
|
+
*/
|
|
6284
|
+
align?: 'center' | 'justify' | 'left' | 'right';
|
|
6285
|
+
/**
|
|
6286
|
+
* The HTML element to use as the container for the text (overrides the variant default HTML element).
|
|
6287
|
+
* @default undefined
|
|
6288
|
+
*/
|
|
6289
|
+
as?: T;
|
|
6290
|
+
/**
|
|
6291
|
+
* Set the font decoration/style.
|
|
6292
|
+
* @default undefined
|
|
6293
|
+
*/
|
|
6294
|
+
decoration?: 'line-through' | 'underline';
|
|
6295
|
+
/**
|
|
6296
|
+
* Whether text should be italic
|
|
6297
|
+
* @default false
|
|
6298
|
+
*/
|
|
6299
|
+
italic?: boolean;
|
|
6300
|
+
/**
|
|
6301
|
+
* If `true`, the text will not wrap, but instead will truncate with a text overflow ellipsis.
|
|
6302
|
+
*
|
|
6303
|
+
* Note that text overflow can only happen with block or inline-block level elements
|
|
6304
|
+
* (the element needs to have a width in order to overflow).
|
|
6305
|
+
* @default false
|
|
6306
|
+
*/
|
|
6307
|
+
noWrap?: boolean;
|
|
6308
|
+
/**
|
|
6309
|
+
* Set the typography variant.
|
|
6310
|
+
* @default 'body1'
|
|
6311
|
+
*/
|
|
6312
|
+
variant?: keyof typeof variantMapping;
|
|
6313
|
+
/**
|
|
6314
|
+
* Set the font weight.
|
|
6315
|
+
* @default 'normal'
|
|
6316
|
+
*/
|
|
6317
|
+
weight?: 'bold' | 'normal' | 'semibold';
|
|
6318
|
+
}
|
|
6319
|
+
type TTypographyOverridenProps<T extends ElementType> = PropsWithChildren<ITypographyProps<T>> & Omit<ComponentPropsWithoutRef<T>, keyof ITypographyProps<T>>;
|
|
6320
|
+
const Typography: <T extends ElementType<any> = "span">(props: TTypographyOverridenProps<T>) => JSX.Element;
|
|
6321
|
+
export default Typography;
|
|
6322
|
+
}
|
|
6381
6323
|
declare module "libs/reach/ui/common/src/reach-2/inputs/components/Legend" {
|
|
6382
6324
|
import { FC } from 'react';
|
|
6383
6325
|
const Legend: FC<{
|
|
@@ -6466,13 +6408,87 @@ declare module "libs/reach/ui/common/src/reach-2/lists/MenuList" {
|
|
|
6466
6408
|
const _default_1: import("react").ForwardRefExoticComponent<MenuProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
6467
6409
|
export default _default_1;
|
|
6468
6410
|
}
|
|
6411
|
+
declare module "libs/reach/ui/common/src/reach-2/surfaces/BasePopover" {
|
|
6412
|
+
import { PopoverContentProps } from '@radix-ui/react-popover';
|
|
6413
|
+
import { FC } from 'react';
|
|
6414
|
+
export type BasePopoverAlignType = 'start' | 'center' | 'end';
|
|
6415
|
+
export type BasePopoverSideType = 'top' | 'left' | 'bottom' | 'right';
|
|
6416
|
+
export interface BasePopoverProps {
|
|
6417
|
+
align?: BasePopoverAlignType;
|
|
6418
|
+
alignOffset?: number;
|
|
6419
|
+
anchor?: JSX.Element;
|
|
6420
|
+
className?: string;
|
|
6421
|
+
collisionPadding?: PopoverContentProps['collisionPadding'];
|
|
6422
|
+
isOpen?: boolean;
|
|
6423
|
+
onCloseAutoFocus?: (event: Event) => void;
|
|
6424
|
+
onOpenAutoFocus?: (event: Event) => void;
|
|
6425
|
+
onOpenChange?: (open: boolean) => void;
|
|
6426
|
+
side?: BasePopoverSideType;
|
|
6427
|
+
sideOffset?: number;
|
|
6428
|
+
trigger?: JSX.Element;
|
|
6429
|
+
}
|
|
6430
|
+
export const BasePopover: FC<BasePopoverProps>;
|
|
6431
|
+
}
|
|
6432
|
+
declare module "libs/reach/ui/common/src/reach-2/tags/Tag" {
|
|
6433
|
+
import React, { SVGProps } from 'react';
|
|
6434
|
+
interface TagProps {
|
|
6435
|
+
className?: string;
|
|
6436
|
+
error?: boolean;
|
|
6437
|
+
icon?: SVGProps<SVGElement>;
|
|
6438
|
+
label: string;
|
|
6439
|
+
onClick?: () => void;
|
|
6440
|
+
onClose?: () => void;
|
|
6441
|
+
}
|
|
6442
|
+
const Tag: React.FC<TagProps>;
|
|
6443
|
+
export default Tag;
|
|
6444
|
+
}
|
|
6445
|
+
declare module "libs/reach/ui/common/src/reach-2/select/Select" {
|
|
6446
|
+
export interface SelectItemProps {
|
|
6447
|
+
id: string;
|
|
6448
|
+
label: string;
|
|
6449
|
+
}
|
|
6450
|
+
interface SelectProps<T> {
|
|
6451
|
+
allowCreation?: boolean;
|
|
6452
|
+
className?: string;
|
|
6453
|
+
disabled?: boolean;
|
|
6454
|
+
emptyLabel?: string;
|
|
6455
|
+
errorItems?: string[];
|
|
6456
|
+
errorLabel?: string;
|
|
6457
|
+
multiple?: boolean;
|
|
6458
|
+
onAddItem?: (id: string) => void;
|
|
6459
|
+
onInputChange?: (value: string) => void;
|
|
6460
|
+
onItemsChange?: (items: T[]) => void;
|
|
6461
|
+
onRemoveItem?: (id: string) => void;
|
|
6462
|
+
options: T[];
|
|
6463
|
+
placeholder?: string;
|
|
6464
|
+
renderItem?: (item: T, isSelected: boolean, onSelect: () => void) => JSX.Element;
|
|
6465
|
+
searchable?: boolean;
|
|
6466
|
+
showSelectedItems?: boolean;
|
|
6467
|
+
values?: T[];
|
|
6468
|
+
}
|
|
6469
|
+
const Select: <T extends SelectItemProps = SelectItemProps>({ allowCreation, className, disabled, emptyLabel, errorItems, errorLabel, multiple, onAddItem, onInputChange, onItemsChange, onRemoveItem, options, placeholder, renderItem, searchable, showSelectedItems, values, }: SelectProps<T>) => JSX.Element;
|
|
6470
|
+
export default Select;
|
|
6471
|
+
}
|
|
6472
|
+
declare module "libs/reach/ui/common/src/reach-2/select/UserSelect" {
|
|
6473
|
+
import { FC } from 'react';
|
|
6474
|
+
import { UserSummary } from "libs/reach/util/common/src/index";
|
|
6475
|
+
interface IUserSelect {
|
|
6476
|
+
disabled?: boolean;
|
|
6477
|
+
onSelectedUsersChange: (selectedUsers: UserSummary[]) => void;
|
|
6478
|
+
placeholder?: string;
|
|
6479
|
+
selectedUsers?: UserSummary[];
|
|
6480
|
+
}
|
|
6481
|
+
const UserSelect: FC<IUserSelect>;
|
|
6482
|
+
export default UserSelect;
|
|
6483
|
+
}
|
|
6469
6484
|
declare module "libs/reach/ui/common/src/reach-2/surfaces/BaseDialog" {
|
|
6470
|
-
import {
|
|
6485
|
+
import { MouseEvent } from 'react';
|
|
6471
6486
|
export enum DialogType {
|
|
6472
6487
|
normal = 0,
|
|
6473
6488
|
close = 1
|
|
6474
6489
|
}
|
|
6475
6490
|
export interface BaseDialogProps {
|
|
6491
|
+
children?: React.ReactNode;
|
|
6476
6492
|
className?: string;
|
|
6477
6493
|
isBlocking?: boolean;
|
|
6478
6494
|
isOpen?: boolean;
|
|
@@ -6482,24 +6498,26 @@ declare module "libs/reach/ui/common/src/reach-2/surfaces/BaseDialog" {
|
|
|
6482
6498
|
triggerButton?: HTMLButtonElement | JSX.Element;
|
|
6483
6499
|
type?: DialogType;
|
|
6484
6500
|
}
|
|
6485
|
-
export const BaseDialog:
|
|
6501
|
+
export const BaseDialog: import("react").ForwardRefExoticComponent<BaseDialogProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
6486
6502
|
}
|
|
6487
6503
|
declare module "libs/reach/ui/common/src/reach-2/surfaces/Dialog" {
|
|
6488
|
-
import {
|
|
6504
|
+
import { MouseEvent } from 'react';
|
|
6489
6505
|
import { BaseDialogProps } from "libs/reach/ui/common/src/reach-2/surfaces/BaseDialog";
|
|
6490
6506
|
export interface DialogProps extends BaseDialogProps {
|
|
6491
6507
|
cancelButtonLabel?: string;
|
|
6492
6508
|
disableSave?: boolean;
|
|
6493
6509
|
dismissOnSave?: boolean;
|
|
6510
|
+
footerContent?: JSX.Element;
|
|
6494
6511
|
hideCancelButton?: boolean;
|
|
6495
6512
|
hideFooterDivider?: boolean;
|
|
6496
6513
|
isSaving?: boolean;
|
|
6497
6514
|
maxwidth?: number;
|
|
6498
6515
|
minwidth?: number;
|
|
6516
|
+
onCancel?: (event?: MouseEvent<HTMLButtonElement>) => void;
|
|
6499
6517
|
onSave?: (event?: MouseEvent<HTMLButtonElement>) => void;
|
|
6500
6518
|
saveButtonLabel?: string;
|
|
6501
6519
|
}
|
|
6502
|
-
export const Dialog:
|
|
6520
|
+
export const Dialog: import("react").ForwardRefExoticComponent<DialogProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
6503
6521
|
}
|
|
6504
6522
|
declare module "libs/reach/ui/common/src/reach-2/surfaces/MobileInlineModal" {
|
|
6505
6523
|
import { FC, SVGProps } from 'react';
|
|
@@ -6586,6 +6604,7 @@ declare module "libs/reach/ui/common/src/reach-2/surfaces/Card" {
|
|
|
6586
6604
|
declare module "libs/reach/ui/common/src/reach-2/tabs/TabGroup" {
|
|
6587
6605
|
import { FC } from 'react';
|
|
6588
6606
|
interface ITabGroupProps {
|
|
6607
|
+
className?: string;
|
|
6589
6608
|
onChange: (tab: string) => void;
|
|
6590
6609
|
selectedTab: string;
|
|
6591
6610
|
tabs: {
|
|
@@ -6625,8 +6644,6 @@ declare module "libs/reach/ui/common/src/reach-2/utils" {
|
|
|
6625
6644
|
}
|
|
6626
6645
|
declare module "libs/reach/ui/common/src/reach-2/index" {
|
|
6627
6646
|
export * from "libs/reach/ui/common/src/reach-2/DateTimeDisplay";
|
|
6628
|
-
export { default as Select } from "libs/reach/ui/common/src/reach-2/Select";
|
|
6629
|
-
export type { SelectItemProps } from "libs/reach/ui/common/src/reach-2/Select";
|
|
6630
6647
|
export * from "libs/reach/ui/common/src/reach-2/assets/index";
|
|
6631
6648
|
export * from "libs/reach/ui/common/src/reach-2/avatar/index";
|
|
6632
6649
|
export * from "libs/reach/ui/common/src/reach-2/buttons/index";
|
|
@@ -6635,6 +6652,9 @@ declare module "libs/reach/ui/common/src/reach-2/index" {
|
|
|
6635
6652
|
export { default as MenuItem } from "libs/reach/ui/common/src/reach-2/lists/MenuItem";
|
|
6636
6653
|
export { default as MenuList } from "libs/reach/ui/common/src/reach-2/lists/MenuList";
|
|
6637
6654
|
export * from "libs/reach/ui/common/src/reach-2/progress/index";
|
|
6655
|
+
export { default as Select } from "libs/reach/ui/common/src/reach-2/select/Select";
|
|
6656
|
+
export { default as UserSelect } from "libs/reach/ui/common/src/reach-2/select/UserSelect";
|
|
6657
|
+
export type { SelectItemProps } from "libs/reach/ui/common/src/reach-2/select/Select";
|
|
6638
6658
|
export * from "libs/reach/ui/common/src/reach-2/surfaces/index";
|
|
6639
6659
|
export { default as Card } from "libs/reach/ui/common/src/reach-2/surfaces/Card";
|
|
6640
6660
|
export { default as TabGroup } from "libs/reach/ui/common/src/reach-2/tabs/TabGroup";
|
|
@@ -11684,7 +11704,7 @@ declare module "libs/reach/feature/content/src/reach-2/common/editor/EnhancedRic
|
|
|
11684
11704
|
mentionSearchHandler?: (searchText: string) => Promise<Account[]>;
|
|
11685
11705
|
onAddFiles?: (files?: {
|
|
11686
11706
|
file: File;
|
|
11687
|
-
}[]) => Promise<void>;
|
|
11707
|
+
}[], isDrop?: boolean) => Promise<void>;
|
|
11688
11708
|
onEditFiles?: (files: {
|
|
11689
11709
|
caption: string;
|
|
11690
11710
|
id: string;
|