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