@livetiles/reach-plugin-types 0.5.0-preview.996 → 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 +205 -187
- 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 {
|
|
@@ -6011,27 +6076,6 @@ declare module "libs/reach/ui/common/src/reach-2/icons/index" {
|
|
|
6011
6076
|
export { default as Icon } from "libs/reach/ui/common/src/reach-2/icons/Icon";
|
|
6012
6077
|
export * from "libs/reach/ui/common/src/reach-2/icons/Icons";
|
|
6013
6078
|
}
|
|
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
6079
|
declare module "libs/reach/ui/common/src/reach-2/progress/Skeleton" {
|
|
6036
6080
|
import { FC } from 'react';
|
|
6037
6081
|
export const Skeleton: FC<{
|
|
@@ -6115,170 +6159,6 @@ declare module "libs/reach/ui/common/src/reach-2/buttons/BaseIconButton" {
|
|
|
6115
6159
|
const BaseIconButton: import("react").ForwardRefExoticComponent<BaseIconButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
6116
6160
|
export default BaseIconButton;
|
|
6117
6161
|
}
|
|
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
6162
|
declare module "libs/reach/ui/common/src/reach-2/buttons/IconButton" {
|
|
6283
6163
|
import { MouseEventHandler, SVGProps } from 'react';
|
|
6284
6164
|
export type IconButtonSizeType = 'Large' | 'Medium' | 'Small';
|
|
@@ -6379,6 +6259,67 @@ declare module "libs/reach/ui/common/src/reach-2/buttons/index" {
|
|
|
6379
6259
|
export { default as ProfileButton } from "libs/reach/ui/common/src/reach-2/buttons/ProfileButton";
|
|
6380
6260
|
export * from "libs/reach/ui/common/src/reach-2/buttons/StandardButton";
|
|
6381
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
|
+
}
|
|
6382
6323
|
declare module "libs/reach/ui/common/src/reach-2/inputs/components/Legend" {
|
|
6383
6324
|
import { FC } from 'react';
|
|
6384
6325
|
const Legend: FC<{
|
|
@@ -6467,6 +6408,79 @@ declare module "libs/reach/ui/common/src/reach-2/lists/MenuList" {
|
|
|
6467
6408
|
const _default_1: import("react").ForwardRefExoticComponent<MenuProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
6468
6409
|
export default _default_1;
|
|
6469
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
|
+
}
|
|
6470
6484
|
declare module "libs/reach/ui/common/src/reach-2/surfaces/BaseDialog" {
|
|
6471
6485
|
import { MouseEvent } from 'react';
|
|
6472
6486
|
export enum DialogType {
|
|
@@ -6493,11 +6507,13 @@ declare module "libs/reach/ui/common/src/reach-2/surfaces/Dialog" {
|
|
|
6493
6507
|
cancelButtonLabel?: string;
|
|
6494
6508
|
disableSave?: boolean;
|
|
6495
6509
|
dismissOnSave?: boolean;
|
|
6510
|
+
footerContent?: JSX.Element;
|
|
6496
6511
|
hideCancelButton?: boolean;
|
|
6497
6512
|
hideFooterDivider?: boolean;
|
|
6498
6513
|
isSaving?: boolean;
|
|
6499
6514
|
maxwidth?: number;
|
|
6500
6515
|
minwidth?: number;
|
|
6516
|
+
onCancel?: (event?: MouseEvent<HTMLButtonElement>) => void;
|
|
6501
6517
|
onSave?: (event?: MouseEvent<HTMLButtonElement>) => void;
|
|
6502
6518
|
saveButtonLabel?: string;
|
|
6503
6519
|
}
|
|
@@ -6588,6 +6604,7 @@ declare module "libs/reach/ui/common/src/reach-2/surfaces/Card" {
|
|
|
6588
6604
|
declare module "libs/reach/ui/common/src/reach-2/tabs/TabGroup" {
|
|
6589
6605
|
import { FC } from 'react';
|
|
6590
6606
|
interface ITabGroupProps {
|
|
6607
|
+
className?: string;
|
|
6591
6608
|
onChange: (tab: string) => void;
|
|
6592
6609
|
selectedTab: string;
|
|
6593
6610
|
tabs: {
|
|
@@ -6627,8 +6644,6 @@ declare module "libs/reach/ui/common/src/reach-2/utils" {
|
|
|
6627
6644
|
}
|
|
6628
6645
|
declare module "libs/reach/ui/common/src/reach-2/index" {
|
|
6629
6646
|
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
6647
|
export * from "libs/reach/ui/common/src/reach-2/assets/index";
|
|
6633
6648
|
export * from "libs/reach/ui/common/src/reach-2/avatar/index";
|
|
6634
6649
|
export * from "libs/reach/ui/common/src/reach-2/buttons/index";
|
|
@@ -6637,6 +6652,9 @@ declare module "libs/reach/ui/common/src/reach-2/index" {
|
|
|
6637
6652
|
export { default as MenuItem } from "libs/reach/ui/common/src/reach-2/lists/MenuItem";
|
|
6638
6653
|
export { default as MenuList } from "libs/reach/ui/common/src/reach-2/lists/MenuList";
|
|
6639
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";
|
|
6640
6658
|
export * from "libs/reach/ui/common/src/reach-2/surfaces/index";
|
|
6641
6659
|
export { default as Card } from "libs/reach/ui/common/src/reach-2/surfaces/Card";
|
|
6642
6660
|
export { default as TabGroup } from "libs/reach/ui/common/src/reach-2/tabs/TabGroup";
|