@livetiles/reach-plugin-types 0.5.0-preview.980 → 0.5.0-preview.982

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.
Files changed (2) hide show
  1. package/lib/index.d.ts +134 -138
  2. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -5887,34 +5887,81 @@ 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/Icon" {
5891
- import { FC, SVGProps } from 'react';
5892
- export enum IconLabelDirection {
5893
- Row = "row",
5894
- Column = "column"
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
5895
5907
  }
5896
- export interface IconProps {
5897
- defaultSVG: SVGProps<SVGElement>;
5898
- hoveredSVG?: SVGProps<SVGElement>;
5899
- label?: string | number;
5900
- labelDirection?: IconLabelDirection;
5901
- labelGap?: number;
5902
- reverseIcon?: boolean;
5903
- size?: number;
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 {
5904
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;
5905
5945
  }
5906
- export const Icon: FC<IconProps>;
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";
5907
5954
  }
5908
- declare module "libs/reach/ui/common/src/reach-2/icons/IconHost" {
5955
+ declare module "libs/reach/ui/common/src/reach-2/icons/Icon" {
5909
5956
  import { FC, SVGProps } from 'react';
5910
- interface IconHostProps {
5957
+ interface IconProps {
5911
5958
  className?: string;
5912
5959
  defaultSVG: SVGProps<SVGElement>;
5913
5960
  hoveredSVG?: SVGProps<SVGElement>;
5914
5961
  size?: number;
5915
5962
  }
5916
- const IconHost: FC<IconHostProps>;
5917
- export default IconHost;
5963
+ const Icon: FC<IconProps>;
5964
+ export default Icon;
5918
5965
  }
5919
5966
  declare module "libs/reach/ui/common/src/reach-2/icons/Icons" {
5920
5967
  export { ReactComponent as AddActiveIcon } from './assets/add-active.svg';
@@ -5947,6 +5994,7 @@ declare module "libs/reach/ui/common/src/reach-2/icons/Icons" {
5947
5994
  export { ReactComponent as EditIcon } from './assets/edit.svg';
5948
5995
  export { ReactComponent as EmojiActiveIcon } from './assets/emoji-active.svg';
5949
5996
  export { ReactComponent as EmojiIcon } from './assets/emoji.svg';
5997
+ export { ReactComponent as ErrorIcon } from './assets/error.svg';
5950
5998
  export { ReactComponent as EventsActiveIcon } from './assets/events-active.svg';
5951
5999
  export { ReactComponent as EventsIcon } from './assets/events.svg';
5952
6000
  export { ReactComponent as ExpandArrowsIcon } from './assets/expandArrows.svg';
@@ -6021,7 +6069,7 @@ declare module "libs/reach/ui/common/src/reach-2/icons/Icons" {
6021
6069
  export { ReactComponent as WindowsIcon } from './assets/windows.svg';
6022
6070
  }
6023
6071
  declare module "libs/reach/ui/common/src/reach-2/icons/index" {
6024
- export { default as IconHost } from "libs/reach/ui/common/src/reach-2/icons/IconHost";
6072
+ export { default as Icon } from "libs/reach/ui/common/src/reach-2/icons/Icon";
6025
6073
  export * from "libs/reach/ui/common/src/reach-2/icons/Icons";
6026
6074
  }
6027
6075
  declare module "libs/reach/ui/common/src/reach-2/progress/Skeleton" {
@@ -6134,23 +6182,37 @@ declare module "libs/reach/ui/common/src/reach-2/buttons/BackButton" {
6134
6182
  className?: string;
6135
6183
  }>;
6136
6184
  }
6137
- declare module "libs/reach/ui/common/src/reach-2/buttons/IconActionButton" {
6185
+ declare module "libs/reach/ui/common/src/reach-2/buttons/ContentActionButton" {
6138
6186
  import { MouseEventHandler, SVGProps } from 'react';
6139
- import { IconProps } from "libs/reach/ui/common/src/reach-2/Icon";
6140
- export interface IconActionButtonProps extends Omit<IconProps, 'size'> {
6187
+ /**
6188
+ * @deprecated
6189
+ */
6190
+ export enum ContentActionDirection {
6191
+ Row = "row",
6192
+ Column = "column"
6193
+ }
6194
+ /**
6195
+ * @deprecated
6196
+ */
6197
+ export interface ContentActionButtonProps {
6198
+ className?: string;
6199
+ defaultSVG: SVGProps<SVGElement>;
6141
6200
  disabled?: boolean;
6142
6201
  domIdentifier?: string;
6202
+ hoveredSVG?: SVGProps<SVGElement>;
6143
6203
  iconSize?: number;
6204
+ isSelected?: boolean;
6205
+ label?: string | number;
6206
+ labelDirection?: ContentActionDirection;
6207
+ labelGap?: number;
6144
6208
  onClick: MouseEventHandler<HTMLButtonElement>;
6145
6209
  secondarySVG?: SVGProps<SVGElement>;
6146
6210
  }
6147
- export const IconActionButton: import("react").ForwardRefExoticComponent<IconActionButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
6148
- }
6149
- declare module "libs/reach/ui/common/src/reach-2/buttons/ContentActionButton" {
6150
- import { IconActionButtonProps } from "libs/reach/ui/common/src/reach-2/buttons/IconActionButton";
6151
- export interface ContentActionButtonProps extends IconActionButtonProps {
6152
- isSelected?: boolean;
6153
- }
6211
+ /**
6212
+ * @deprecated
6213
+ * Don't use this component use `StandardButton` or `IconButton` instead
6214
+ * or create a specific button for your use case.
6215
+ */
6154
6216
  export const ContentActionButton: import("react").ForwardRefExoticComponent<ContentActionButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
6155
6217
  }
6156
6218
  declare module "libs/reach/ui/common/src/reach-2/buttons/FloatingButton" {
@@ -6167,63 +6229,6 @@ declare module "libs/reach/ui/common/src/reach-2/buttons/FloatingButton" {
6167
6229
  const FloatingButton: FC<FloatingButtonProps>;
6168
6230
  export default FloatingButton;
6169
6231
  }
6170
- declare module "libs/reach/ui/common/src/reach-2/avatar/Avatar" {
6171
- import { FC } from 'react';
6172
- export enum AvatarSize {
6173
- xxs = 0,
6174
- xs = 1,
6175
- sm = 2,
6176
- md = 3,
6177
- lg = 4,
6178
- xl = 5
6179
- }
6180
- interface IProps {
6181
- backgroundColor?: string;
6182
- className?: string;
6183
- displayName: string;
6184
- noInitials?: boolean;
6185
- size?: AvatarSize;
6186
- tenantId?: string;
6187
- userPrincipalName?: string;
6188
- }
6189
- const Avatar: FC<IProps>;
6190
- export default Avatar;
6191
- }
6192
- declare module "libs/reach/ui/common/src/reach-2/avatar/GroupAvatar" {
6193
- import { FC } from 'react';
6194
- import { AvatarSize } from "libs/reach/ui/common/src/reach-2/avatar/Avatar";
6195
- export interface AvatarUser {
6196
- displayName?: string;
6197
- userPrincipalName?: string;
6198
- }
6199
- interface CommentsGroupAvatarProps {
6200
- avatarsLimit?: number;
6201
- avatarsSize?: AvatarSize;
6202
- users: AvatarUser[];
6203
- }
6204
- const GroupAvatar: FC<CommentsGroupAvatarProps>;
6205
- export default GroupAvatar;
6206
- }
6207
- declare module "libs/reach/ui/common/src/reach-2/avatar/Persona" {
6208
- import { FC } from 'react';
6209
- import { AvatarSize } from "libs/reach/ui/common/src/reach-2/avatar/Avatar";
6210
- interface IProps {
6211
- className?: string;
6212
- displayName: string;
6213
- size?: AvatarSize.sm | AvatarSize.md | AvatarSize.lg;
6214
- subtitle?: string | JSX.Element;
6215
- title: string;
6216
- userPrincipalName: string;
6217
- }
6218
- const Persona: FC<IProps>;
6219
- export default Persona;
6220
- }
6221
- declare module "libs/reach/ui/common/src/reach-2/avatar/index" {
6222
- export { default as Avatar2, AvatarSize } from "libs/reach/ui/common/src/reach-2/avatar/Avatar";
6223
- export { default as GroupAvatar2 } from "libs/reach/ui/common/src/reach-2/avatar/GroupAvatar";
6224
- export type { AvatarUser } from "libs/reach/ui/common/src/reach-2/avatar/GroupAvatar";
6225
- export { default as Persona } from "libs/reach/ui/common/src/reach-2/avatar/Persona";
6226
- }
6227
6232
  declare module "libs/reach/ui/common/src/reach-2/buttons/ProfileButton" {
6228
6233
  import { FC } from 'react';
6229
6234
  import { AvatarSize } from "libs/reach/ui/common/src/reach-2/avatar/index";
@@ -6235,7 +6240,7 @@ declare module "libs/reach/ui/common/src/reach-2/buttons/ProfileButton" {
6235
6240
  const ProfileButton: FC<IProfileButtonProps>;
6236
6241
  export default ProfileButton;
6237
6242
  }
6238
- declare module "libs/reach/ui/common/src/reach-2/buttons/StandardButtons" {
6243
+ declare module "libs/reach/ui/common/src/reach-2/buttons/StandardButton" {
6239
6244
  export const PrimaryButton: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("libs/reach/ui/common/src/reach-2/buttons/BaseButton").BaseButtonProps & import("react").RefAttributes<HTMLButtonElement>>, import("styled-components").DefaultTheme, {}, never>;
6240
6245
  export const SecondaryButton: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("libs/reach/ui/common/src/reach-2/buttons/BaseButton").BaseButtonProps & import("react").RefAttributes<HTMLButtonElement>>, import("styled-components").DefaultTheme, {}, never>;
6241
6246
  export const TertiaryButton: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("libs/reach/ui/common/src/reach-2/buttons/BaseButton").BaseButtonProps & import("react").RefAttributes<HTMLButtonElement>>, import("styled-components").DefaultTheme, {}, never>;
@@ -6248,42 +6253,7 @@ declare module "libs/reach/ui/common/src/reach-2/buttons/index" {
6248
6253
  export { default as FloatingButton } from "libs/reach/ui/common/src/reach-2/buttons/FloatingButton";
6249
6254
  export { default as IconButton2 } from "libs/reach/ui/common/src/reach-2/buttons/IconButton";
6250
6255
  export { default as ProfileButton } from "libs/reach/ui/common/src/reach-2/buttons/ProfileButton";
6251
- export * from "libs/reach/ui/common/src/reach-2/buttons/StandardButtons";
6252
- }
6253
- declare module "libs/reach/ui/common/src/reach-2/SearchBox" {
6254
- import { FC } from 'react';
6255
- export type SearchBoxSizeType = 'Large' | 'Small';
6256
- export const SearchBox: FC<{
6257
- autoFocus?: boolean;
6258
- className?: string;
6259
- disabled?: boolean;
6260
- onChange: (value: string) => void;
6261
- placeholder?: string;
6262
- size?: SearchBoxSizeType;
6263
- value: string;
6264
- }>;
6265
- }
6266
- declare module "libs/reach/ui/common/src/reach-2/assets/Assets" {
6267
- export { ReactComponent as Logo } from './logo.svg';
6268
- export { ReactComponent as Conversation } from './conversations.svg';
6269
- export { default as Background } from './background.svg';
6270
- }
6271
- declare module "libs/reach/ui/common/src/reach-2/assets/index" {
6272
- export * from "libs/reach/ui/common/src/reach-2/assets/Assets";
6273
- }
6274
- declare module "libs/reach/ui/common/src/reach-2/inputs/OTPInput" {
6275
- import { FC } from 'react';
6276
- interface IOTPInputProps {
6277
- code: string;
6278
- codeLength: number;
6279
- onChange: (code: string) => void;
6280
- className?: string;
6281
- }
6282
- const OTPInput: FC<IOTPInputProps>;
6283
- export default OTPInput;
6284
- }
6285
- declare module "libs/reach/ui/common/src/reach-2/inputs/index" {
6286
- export { default as OTPInput } from "libs/reach/ui/common/src/reach-2/inputs/OTPInput";
6256
+ export * from "libs/reach/ui/common/src/reach-2/buttons/StandardButton";
6287
6257
  }
6288
6258
  declare module "libs/reach/ui/common/src/reach-2/typography/Typography" {
6289
6259
  import { ComponentPropsWithoutRef, ElementType, PropsWithChildren } from 'react';
@@ -6346,6 +6316,44 @@ declare module "libs/reach/ui/common/src/reach-2/typography/Typography" {
6346
6316
  const Typography: <T extends ElementType<any> = "span">(props: TTypographyOverridenProps<T>) => JSX.Element;
6347
6317
  export default Typography;
6348
6318
  }
6319
+ declare module "libs/reach/ui/common/src/reach-2/inputs/Input" {
6320
+ type InputSize = 'Large' | 'Small';
6321
+ export interface IInputProps extends Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, 'onChange' | 'ref' | 'size' | 'value'> {
6322
+ error?: boolean;
6323
+ label?: string;
6324
+ leftIcon?: JSX.Element;
6325
+ legend?: string;
6326
+ onChange: (value: string) => void;
6327
+ readonly?: boolean;
6328
+ rightIcon?: JSX.Element;
6329
+ size?: InputSize;
6330
+ value: string;
6331
+ }
6332
+ const _default: import("react").ForwardRefExoticComponent<IInputProps & import("react").RefAttributes<HTMLInputElement>>;
6333
+ export default _default;
6334
+ }
6335
+ declare module "libs/reach/ui/common/src/reach-2/inputs/SearchInput" {
6336
+ import { FC } from 'react';
6337
+ import { IInputProps } from "libs/reach/ui/common/src/reach-2/inputs/Input";
6338
+ const SearchInput: FC<Omit<IInputProps, 'leftIcon' | 'rightIcon'>>;
6339
+ export default SearchInput;
6340
+ }
6341
+ declare module "libs/reach/ui/common/src/reach-2/inputs/OTPInput" {
6342
+ import { FC } from 'react';
6343
+ interface IOTPInputProps {
6344
+ code: string;
6345
+ codeLength: number;
6346
+ onChange: (code: string) => void;
6347
+ className?: string;
6348
+ }
6349
+ const OTPInput: FC<IOTPInputProps>;
6350
+ export default OTPInput;
6351
+ }
6352
+ declare module "libs/reach/ui/common/src/reach-2/inputs/index" {
6353
+ export { default as Input } from "libs/reach/ui/common/src/reach-2/inputs/Input";
6354
+ export { default as SearchInput } from "libs/reach/ui/common/src/reach-2/inputs/SearchInput";
6355
+ export { default as OTPInput } from "libs/reach/ui/common/src/reach-2/inputs/OTPInput";
6356
+ }
6349
6357
  declare module "libs/reach/ui/common/src/reach-2/lists/MenuItem" {
6350
6358
  import { FC, MouseEvent, SVGProps } from 'react';
6351
6359
  export interface MenuItemProps {
@@ -6552,15 +6560,6 @@ declare module "libs/reach/ui/common/src/reach-2/tags/Tag" {
6552
6560
  const Tag: React.FC<TagProps>;
6553
6561
  export default Tag;
6554
6562
  }
6555
- declare module "libs/reach/ui/common/src/reach-2/TextField" {
6556
- import { FC, InputHTMLAttributes } from 'react';
6557
- export interface ITextFieldProps extends InputHTMLAttributes<HTMLInputElement> {
6558
- label: string;
6559
- errorMessage?: string;
6560
- }
6561
- const TextField: FC<ITextFieldProps>;
6562
- export default TextField;
6563
- }
6564
6563
  declare module "libs/reach/ui/common/src/reach-2/utils" {
6565
6564
  export function getNormalizedPercentageBasedOnDeviceHeight(heightToConvert: number, safeArea?: number, fullyExpandThreshold?: number): number;
6566
6565
  export function useNormalizedBreakpointValuesBasedOnDeviceHeight(heightToConvert: number, safeArea?: number, fullyExpandThreshold?: number): {
@@ -6571,8 +6570,6 @@ declare module "libs/reach/ui/common/src/reach-2/utils" {
6571
6570
  }
6572
6571
  declare module "libs/reach/ui/common/src/reach-2/index" {
6573
6572
  export * from "libs/reach/ui/common/src/reach-2/DateTimeDisplay";
6574
- export * from "libs/reach/ui/common/src/reach-2/Icon";
6575
- export * from "libs/reach/ui/common/src/reach-2/SearchBox";
6576
6573
  export * from "libs/reach/ui/common/src/reach-2/assets/index";
6577
6574
  export * from "libs/reach/ui/common/src/reach-2/avatar/index";
6578
6575
  export * from "libs/reach/ui/common/src/reach-2/buttons/index";
@@ -6587,7 +6584,6 @@ declare module "libs/reach/ui/common/src/reach-2/index" {
6587
6584
  export { default as Table } from "libs/reach/ui/common/src/reach-2/table/Table";
6588
6585
  export * from "libs/reach/ui/common/src/reach-2/table/Table";
6589
6586
  export { default as Tag } from "libs/reach/ui/common/src/reach-2/tags/Tag";
6590
- export { default as TextField } from "libs/reach/ui/common/src/reach-2/TextField";
6591
6587
  export { default as Typography } from "libs/reach/ui/common/src/reach-2/typography/Typography";
6592
6588
  export type { ITypographyProps } from "libs/reach/ui/common/src/reach-2/typography/Typography";
6593
6589
  export * from "libs/reach/ui/common/src/reach-2/utils";
@@ -11635,8 +11631,8 @@ declare module "libs/reach/feature/content/src/reach-2/common/editor/EnhancedRic
11635
11631
  shortcuts?: string[];
11636
11632
  useHardBreak?: boolean;
11637
11633
  }
11638
- const _default: import("react").ForwardRefExoticComponent<EnhancedRichTextEditorProps & import("react").RefAttributes<EnhancedRichTextEditorRef>>;
11639
- export default _default;
11634
+ const _default_1: import("react").ForwardRefExoticComponent<EnhancedRichTextEditorProps & import("react").RefAttributes<EnhancedRichTextEditorRef>>;
11635
+ export default _default_1;
11640
11636
  }
11641
11637
  declare module "libs/reach/feature/content/src/reach-2/common/editor/common/EmojiPicker" {
11642
11638
  import { FC } from 'react';
@@ -11659,11 +11655,11 @@ declare module "libs/reach/feature/content/src/reach-2/common/editor/editors/Men
11659
11655
  import { Account } from "libs/reach/util/common/src/index";
11660
11656
  export const MentionsEditor: FC<{
11661
11657
  mentionSearchHandler: (searchText: string) => Promise<Account[]>;
11658
+ onCloseOverlay: () => void;
11662
11659
  onMentionSelect: (mention: {
11663
11660
  id: string;
11664
11661
  label: string;
11665
11662
  }) => void;
11666
- onCloseOverlay: () => void;
11667
11663
  }>;
11668
11664
  }
11669
11665
  declare module "libs/reach/feature/content/src/reach-2/comments/CommentEditorOverlay" {
package/package.json CHANGED
@@ -4,6 +4,6 @@
4
4
  "main": "",
5
5
  "types": "./index.d.ts",
6
6
  "license": "ISC",
7
- "version": "0.5.0-preview.980",
7
+ "version": "0.5.0-preview.982",
8
8
  "dependencies": {}
9
9
  }