@livetiles/reach-plugin-types 0.5.0-preview.1090 → 0.5.0-preview.1093

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 +189 -121
  2. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -3835,8 +3835,8 @@ declare module "libs/reach/util/common/src/reach-2/nested-groups/types" {
3835
3835
  import { GroupRoles } from "libs/reach/util/common/src/user/index";
3836
3836
  export interface INestedGroupUser {
3837
3837
  displayName?: string;
3838
- id: string;
3839
3838
  hasPendingInvitation?: boolean;
3839
+ id: string;
3840
3840
  mail?: string;
3841
3841
  role: GroupRoles;
3842
3842
  userPrincipalName: string;
@@ -3846,6 +3846,7 @@ declare module "libs/reach/util/common/src/reach-2/nested-groups/types" {
3846
3846
  id: string;
3847
3847
  isParent: boolean;
3848
3848
  name: string;
3849
+ parentId: string;
3849
3850
  users: INestedGroupUser[];
3850
3851
  }
3851
3852
  export interface ILinkGroup {
@@ -6213,9 +6214,11 @@ declare module "libs/reach/ui/common/src/reach-2/icons/Icons" {
6213
6214
  export { ReactComponent as GifActiveIcon } from './assets/gif-active.svg';
6214
6215
  export { ReactComponent as GifIcon } from './assets/gif.svg';
6215
6216
  export { ReactComponent as GoogleIcon } from './assets/google.svg';
6216
- export { ReactComponent as GroupIcon } from './assets/group.svg';
6217
6217
  export { ReactComponent as HashtagActiveIcon } from './assets/hashtag-active.svg';
6218
6218
  export { ReactComponent as HashtagIcon } from './assets/hashtag.svg';
6219
+ export { ReactComponent as HierachyDefaultIcon } from './assets/hierachyDefault.svg';
6220
+ export { ReactComponent as HierachyNestedIcon } from './assets/hierachyNested.svg';
6221
+ export { ReactComponent as HierachyParentIcon } from './assets/hierachyParent.svg';
6219
6222
  export { ReactComponent as ImageActiveIcon } from './assets/image-active.svg';
6220
6223
  export { ReactComponent as ImageIcon } from './assets/image.svg';
6221
6224
  export { ReactComponent as InsightsActiveIcon } from './assets/insights-active.svg';
@@ -6276,9 +6279,9 @@ declare module "libs/reach/ui/common/src/reach-2/icons/Icons" {
6276
6279
  export { ReactComponent as TitleActiveIcon } from './assets/title-active.svg';
6277
6280
  export { ReactComponent as TitleIcon } from './assets/title.svg';
6278
6281
  export { ReactComponent as TrashCanIcon } from './assets/trash-can.svg';
6282
+ export { ReactComponent as Unchecked } from './assets/unchecked.svg';
6279
6283
  export { ReactComponent as UnderlineActiveIcon } from './assets/underline-active.svg';
6280
6284
  export { ReactComponent as UnderlineIcon } from './assets/underline.svg';
6281
- export { ReactComponent as Unchecked } from './assets/unchecked.svg';
6282
6285
  export { ReactComponent as UploadActiveIcon } from './assets/upload-active.svg';
6283
6286
  export { ReactComponent as UploadIcon } from './assets/upload.svg';
6284
6287
  export { ReactComponent as WindowsIcon } from './assets/windows.svg';
@@ -6639,120 +6642,6 @@ declare module "libs/reach/ui/common/src/reach-2/lists/MenuList" {
6639
6642
  const _default_1: import("react").ForwardRefExoticComponent<MenuProps & import("react").RefAttributes<HTMLDivElement>>;
6640
6643
  export default _default_1;
6641
6644
  }
6642
- declare module "libs/reach/ui/common/src/reach-2/surfaces/BasePopover" {
6643
- import { PopoverContentProps } from '@radix-ui/react-popover';
6644
- import { FC } from 'react';
6645
- export type BasePopoverAlignType = 'start' | 'center' | 'end';
6646
- export type BasePopoverSideType = 'top' | 'left' | 'bottom' | 'right';
6647
- export interface BasePopoverProps {
6648
- align?: BasePopoverAlignType;
6649
- alignOffset?: number;
6650
- anchor?: JSX.Element;
6651
- className?: string;
6652
- collisionPadding?: PopoverContentProps['collisionPadding'];
6653
- isOpen?: boolean;
6654
- onCloseAutoFocus?: (event: Event) => void;
6655
- onOpenAutoFocus?: (event: Event) => void;
6656
- onOpenChange?: (open: boolean) => void;
6657
- side?: BasePopoverSideType;
6658
- sideOffset?: number;
6659
- trigger?: JSX.Element;
6660
- }
6661
- export const BasePopover: FC<BasePopoverProps>;
6662
- }
6663
- declare module "libs/reach/ui/common/src/reach-2/utils" {
6664
- import { TagSize } from "libs/reach/ui/common/src/reach-2/tags/Tag";
6665
- export const getNormalizedPercentageBasedOnDeviceHeight: (heightToConvert: number, safeArea?: number, fullyExpandThreshold?: number) => number;
6666
- export const useNormalizedBreakpointValuesBasedOnDeviceHeight: (heightToConvert: number, safeArea?: number, fullyExpandThreshold?: number) => {
6667
- breakpoints: number[];
6668
- initialBreakpoint: number;
6669
- };
6670
- export const getIsMobilePhone: () => boolean;
6671
- export type TagValue = {
6672
- id: string;
6673
- label?: string;
6674
- name?: string;
6675
- };
6676
- export const getMaxTagList: (items: TagValue[], availableWidth: number, options?: {
6677
- hasError?: (value: TagValue) => boolean;
6678
- isHighlighted?: boolean;
6679
- onClose?: (value: TagValue) => void;
6680
- size?: TagSize;
6681
- }) => any[];
6682
- }
6683
- declare module "libs/reach/ui/common/src/reach-2/select/Select" {
6684
- import { SVGProps } from 'react';
6685
- import { IconProps } from "libs/reach/ui/common/src/reach-2/icons/index";
6686
- import { BasePopoverAlignType } from "libs/reach/ui/common/src/reach-2/surfaces/BasePopover";
6687
- type SelectSize = 'Large' | 'Small';
6688
- export interface SelectItemProps {
6689
- icon?: SVGProps<SVGElement>;
6690
- id: string;
6691
- label: string;
6692
- }
6693
- export interface SelectItemGroupProps<T> {
6694
- title: string;
6695
- options: T[];
6696
- }
6697
- interface SelectProps<T> {
6698
- allowCreation?: boolean;
6699
- className?: string;
6700
- disabled?: boolean;
6701
- emptyLabel?: string;
6702
- errorItems?: string[];
6703
- errorLabel?: string;
6704
- fitToContent?: boolean;
6705
- forcePlaceholder?: boolean;
6706
- fullyControlled?: boolean;
6707
- hideChevron?: boolean;
6708
- leftIcon?: IconProps;
6709
- multiple?: boolean;
6710
- onAddItem?: (id: string) => void;
6711
- onInputChange?: (value: string) => void;
6712
- onItemsChange?: (items: T[]) => void;
6713
- onItemSelected?: (item: T, index: number) => void;
6714
- onRemoveItem?: (id: string) => void;
6715
- options: T[] | SelectItemGroupProps<T>[];
6716
- placeholder?: string;
6717
- popoverAlign?: BasePopoverAlignType;
6718
- popoverAlignOffset?: number;
6719
- popoverHeight?: number;
6720
- popoverWidth?: number;
6721
- renderItem?: (item: T, isSelected: boolean, onSelect: () => void) => JSX.Element;
6722
- searchable?: boolean;
6723
- selectedValuesOptions?: {
6724
- hide?: boolean;
6725
- noWrap?: boolean;
6726
- };
6727
- size?: SelectSize;
6728
- values?: T[];
6729
- }
6730
- const Select: <T extends SelectItemProps = SelectItemProps>({ allowCreation, className, disabled, emptyLabel, errorItems, errorLabel, fitToContent, forcePlaceholder, fullyControlled, hideChevron, leftIcon, multiple, onAddItem, onInputChange, onItemsChange, onItemSelected, onRemoveItem, options: preprocessedOptions, placeholder, popoverAlign, popoverAlignOffset, popoverHeight, popoverWidth, renderItem, searchable, selectedValuesOptions, size, values, }: SelectProps<T>) => JSX.Element;
6731
- export default Select;
6732
- }
6733
- declare module "libs/reach/ui/common/src/reach-2/select/UserSelect" {
6734
- import { FC } from 'react';
6735
- export interface IUserSelectUser {
6736
- displayName?: string;
6737
- id: string;
6738
- mail?: string;
6739
- userPrincipalName: string;
6740
- }
6741
- interface IUserSelect {
6742
- disabled?: boolean;
6743
- onSelectedUsersChange: (selectedUsers: IUserSelectUser[]) => void;
6744
- placeholder?: string;
6745
- selectedUsers?: IUserSelectUser[];
6746
- }
6747
- const UserSelect: FC<IUserSelect>;
6748
- export default UserSelect;
6749
- }
6750
- declare module "libs/reach/ui/common/src/reach-2/select/index" {
6751
- export * from "libs/reach/ui/common/src/reach-2/select/Select";
6752
- export { default as Select } from "libs/reach/ui/common/src/reach-2/select/Select";
6753
- export * from "libs/reach/ui/common/src/reach-2/select/UserSelect";
6754
- export { default as UserSelect } from "libs/reach/ui/common/src/reach-2/select/UserSelect";
6755
- }
6756
6645
  declare module "libs/reach/ui/common/src/reach-2/surfaces/BaseDialog" {
6757
6646
  import { MouseEvent } from 'react';
6758
6647
  export enum DialogType {
@@ -6855,6 +6744,27 @@ declare module "libs/reach/ui/common/src/reach-2/surfaces/ConfirmationDialog" {
6855
6744
  description?: string;
6856
6745
  }>;
6857
6746
  }
6747
+ declare module "libs/reach/ui/common/src/reach-2/surfaces/BasePopover" {
6748
+ import { PopoverContentProps } from '@radix-ui/react-popover';
6749
+ import { FC } from 'react';
6750
+ export type BasePopoverAlignType = 'start' | 'center' | 'end';
6751
+ export type BasePopoverSideType = 'top' | 'left' | 'bottom' | 'right';
6752
+ export interface BasePopoverProps {
6753
+ align?: BasePopoverAlignType;
6754
+ alignOffset?: number;
6755
+ anchor?: JSX.Element;
6756
+ className?: string;
6757
+ collisionPadding?: PopoverContentProps['collisionPadding'];
6758
+ isOpen?: boolean;
6759
+ onCloseAutoFocus?: (event: Event) => void;
6760
+ onOpenAutoFocus?: (event: Event) => void;
6761
+ onOpenChange?: (open: boolean) => void;
6762
+ side?: BasePopoverSideType;
6763
+ sideOffset?: number;
6764
+ trigger?: JSX.Element;
6765
+ }
6766
+ export const BasePopover: FC<BasePopoverProps>;
6767
+ }
6858
6768
  declare module "libs/reach/ui/common/src/reach-2/surfaces/index" {
6859
6769
  export * from "libs/reach/ui/common/src/reach-2/surfaces/Dialog";
6860
6770
  export * from "libs/reach/ui/common/src/reach-2/surfaces/Panel";
@@ -6866,6 +6776,164 @@ declare module "libs/reach/ui/common/src/reach-2/surfaces/index" {
6866
6776
  export * from "libs/reach/ui/common/src/reach-2/surfaces/BasePopover";
6867
6777
  export { DialogType } from "libs/reach/ui/common/src/reach-2/surfaces/BaseDialog";
6868
6778
  }
6779
+ declare module "libs/reach/ui/common/src/reach-2/utils" {
6780
+ import { TagSize } from "libs/reach/ui/common/src/reach-2/tags/Tag";
6781
+ export const getNormalizedPercentageBasedOnDeviceHeight: (heightToConvert: number, safeArea?: number, fullyExpandThreshold?: number) => number;
6782
+ export const useNormalizedBreakpointValuesBasedOnDeviceHeight: (heightToConvert: number, safeArea?: number, fullyExpandThreshold?: number) => {
6783
+ breakpoints: number[];
6784
+ initialBreakpoint: number;
6785
+ };
6786
+ export const getIsMobilePhone: () => boolean;
6787
+ export type TagValue = {
6788
+ id: string;
6789
+ label?: string;
6790
+ name?: string;
6791
+ };
6792
+ export const getMaxTagList: (items: TagValue[], availableWidth: number, options?: {
6793
+ hasError?: (value: TagValue) => boolean;
6794
+ isHighlighted?: boolean;
6795
+ onClose?: (value: TagValue) => void;
6796
+ size?: TagSize;
6797
+ }) => any[];
6798
+ }
6799
+ declare module "libs/reach/ui/common/src/reach-2/select/types" {
6800
+ import { SVGProps } from 'react';
6801
+ export type SelectSize = 'Large' | 'Small';
6802
+ export interface ISelectItemProps {
6803
+ icon?: SVGProps<SVGElement>;
6804
+ id: string;
6805
+ label: string;
6806
+ }
6807
+ }
6808
+ declare module "libs/reach/ui/common/src/reach-2/select/components/PopoverContent" {
6809
+ import { MouseEvent, MutableRefObject } from 'react';
6810
+ import { ISelectItemProps } from "libs/reach/ui/common/src/reach-2/select/types";
6811
+ interface IPopoverContentProps<T> {
6812
+ areOptionsGrouped: boolean;
6813
+ emptyLabel?: string;
6814
+ focusedIndex: number | null;
6815
+ handleItemSelected: (item: T, index: number) => void;
6816
+ handleRemoveAllItems: (e: MouseEvent<Element>) => void;
6817
+ initialSelectedItems: T[];
6818
+ isItemSelected: (id: string) => boolean;
6819
+ listWrapperRef: MutableRefObject<HTMLDivElement | null>;
6820
+ menuListOptions: T[];
6821
+ multiple: boolean;
6822
+ renderGroupedOptions: () => JSX.Element[];
6823
+ renderItem?: (item: T, isSelected: boolean, onSelect: () => void) => JSX.Element;
6824
+ selectedValues: T[];
6825
+ }
6826
+ const PopoverContent: <T extends ISelectItemProps>({ areOptionsGrouped, emptyLabel, focusedIndex, handleItemSelected, handleRemoveAllItems, initialSelectedItems, isItemSelected, listWrapperRef, menuListOptions, multiple, renderGroupedOptions, renderItem, selectedValues, }: IPopoverContentProps<T>) => JSX.Element;
6827
+ export default PopoverContent;
6828
+ }
6829
+ declare module "libs/reach/ui/common/src/reach-2/select/components/Trigger" {
6830
+ import { ChangeEvent, KeyboardEvent, MouseEvent, ReactNode, RefObject } from 'react';
6831
+ import { IconProps } from "libs/reach/ui/common/src/reach-2/icons/index";
6832
+ import { ISelectItemProps, SelectSize } from "libs/reach/ui/common/src/reach-2/select/types";
6833
+ interface ITriggerProps<T> {
6834
+ className?: string;
6835
+ containerRef: RefObject<HTMLDivElement>;
6836
+ disabled?: boolean;
6837
+ errorLabel?: string;
6838
+ forcePlaceholder?: boolean;
6839
+ handleContainerClick: () => void;
6840
+ handleContainerKeyDown: (e: KeyboardEvent<HTMLInputElement>) => void;
6841
+ handleContainerOnFocus: () => void;
6842
+ handleContainerOnMouseEnter: () => void;
6843
+ handleContainerOnMouseLeave: () => void;
6844
+ handleInputChange: (e: ChangeEvent<HTMLInputElement>) => void;
6845
+ handleInputKeyDown: (e: KeyboardEvent<HTMLInputElement>) => void;
6846
+ handleRemoveAllItems: (e: MouseEvent<Element>) => void;
6847
+ hideChevron?: boolean;
6848
+ inputRef: RefObject<HTMLInputElement>;
6849
+ inputSize?: number;
6850
+ inputValue: string;
6851
+ innerRef: RefObject<HTMLDivElement>;
6852
+ isHovered: boolean;
6853
+ isPopoverOpen: boolean;
6854
+ leftIcon?: IconProps;
6855
+ multiple?: boolean;
6856
+ placeholder?: string;
6857
+ renderSelectedValues: () => ReactNode;
6858
+ searchable?: boolean;
6859
+ selectedValues: T[];
6860
+ selectedValuesOptions?: {
6861
+ hide?: boolean;
6862
+ noWrap?: boolean;
6863
+ };
6864
+ size?: SelectSize;
6865
+ }
6866
+ const _default_2: import("react").ForwardRefExoticComponent<ITriggerProps<ISelectItemProps> & import("react").RefAttributes<HTMLDivElement>>;
6867
+ export default _default_2;
6868
+ }
6869
+ declare module "libs/reach/ui/common/src/reach-2/select/Select" {
6870
+ import { IconProps } from "libs/reach/ui/common/src/reach-2/icons/index";
6871
+ import { BasePopoverAlignType } from "libs/reach/ui/common/src/reach-2/surfaces/index";
6872
+ import { ISelectItemProps, SelectSize } from "libs/reach/ui/common/src/reach-2/select/types";
6873
+ export interface ISelectItemGroupProps<T> {
6874
+ options: T[];
6875
+ title: string;
6876
+ }
6877
+ interface ISelectProps<T> {
6878
+ allowCreation?: boolean;
6879
+ className?: string;
6880
+ disabled?: boolean;
6881
+ emptyLabel?: string;
6882
+ errorItems?: string[];
6883
+ errorLabel?: string;
6884
+ fitToContent?: boolean;
6885
+ forcePlaceholder?: boolean;
6886
+ fullyControlled?: boolean;
6887
+ hideChevron?: boolean;
6888
+ leftIcon?: IconProps;
6889
+ multiple?: boolean;
6890
+ onAddItem?: (id: string) => void;
6891
+ onInputChange?: (value: string) => void;
6892
+ onItemsChange?: (items: T[]) => void;
6893
+ onItemSelected?: (item: T, index: number) => void;
6894
+ onRemoveItem?: (id: string) => void;
6895
+ options: T[] | ISelectItemGroupProps<T>[];
6896
+ placeholder?: string;
6897
+ popoverAlign?: BasePopoverAlignType;
6898
+ popoverAlignOffset?: number;
6899
+ popoverHeight?: number;
6900
+ popoverWidth?: number;
6901
+ renderItem?: (item: T, isSelected: boolean, onSelect: () => void) => JSX.Element;
6902
+ searchable?: boolean;
6903
+ selectedValuesOptions?: {
6904
+ hide?: boolean;
6905
+ noWrap?: boolean;
6906
+ };
6907
+ size?: SelectSize;
6908
+ values?: T[];
6909
+ }
6910
+ const Select: <T extends ISelectItemProps = ISelectItemProps>({ allowCreation, className, disabled, emptyLabel, errorItems, errorLabel, fitToContent, forcePlaceholder, fullyControlled, hideChevron, leftIcon, multiple, onAddItem, onInputChange, onItemsChange, onItemSelected, onRemoveItem, options: preprocessedOptions, placeholder, popoverAlign, popoverAlignOffset, popoverHeight, popoverWidth, renderItem, searchable, selectedValuesOptions, size, values, }: ISelectProps<T>) => JSX.Element;
6911
+ export default Select;
6912
+ }
6913
+ declare module "libs/reach/ui/common/src/reach-2/select/UserSelect" {
6914
+ import { FC } from 'react';
6915
+ export interface IUserSelectUser {
6916
+ displayName?: string;
6917
+ id: string;
6918
+ mail?: string;
6919
+ userPrincipalName: string;
6920
+ }
6921
+ interface IUserSelect {
6922
+ disabled?: boolean;
6923
+ onSelectedUsersChange: (selectedUsers: IUserSelectUser[]) => void;
6924
+ placeholder?: string;
6925
+ selectedUsers?: IUserSelectUser[];
6926
+ }
6927
+ const UserSelect: FC<IUserSelect>;
6928
+ export default UserSelect;
6929
+ }
6930
+ declare module "libs/reach/ui/common/src/reach-2/select/index" {
6931
+ export * from "libs/reach/ui/common/src/reach-2/select/Select";
6932
+ export { default as Select } from "libs/reach/ui/common/src/reach-2/select/Select";
6933
+ export type { ISelectItemProps } from "libs/reach/ui/common/src/reach-2/select/types";
6934
+ export * from "libs/reach/ui/common/src/reach-2/select/UserSelect";
6935
+ export { default as UserSelect } from "libs/reach/ui/common/src/reach-2/select/UserSelect";
6936
+ }
6869
6937
  declare module "libs/reach/ui/common/src/reach-2/surfaces/Card" {
6870
6938
  import { FC, ReactNode } from 'react';
6871
6939
  interface ICardProps {
@@ -6884,8 +6952,8 @@ declare module "libs/reach/ui/common/src/reach-2/table/Table" {
6884
6952
  $isExpanded?: boolean;
6885
6953
  }, never>;
6886
6954
  export const TableExpandIconPlaceholder: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
6887
- const _default_2: import("react").ForwardRefExoticComponent<TableProps<any> & import("react").RefAttributes<any>>;
6888
- export default _default_2;
6955
+ const _default_3: import("react").ForwardRefExoticComponent<TableProps<any> & import("react").RefAttributes<any>>;
6956
+ export default _default_3;
6889
6957
  }
6890
6958
  declare module "libs/reach/ui/common/src/reach-2/tabs/TabGroup" {
6891
6959
  import { FC } from 'react';
@@ -12084,8 +12152,8 @@ declare module "libs/reach/feature/content/src/reach-2/common/editor/EnhancedRic
12084
12152
  shortcuts?: string[];
12085
12153
  useHardBreak?: boolean;
12086
12154
  }
12087
- const _default_3: import("react").ForwardRefExoticComponent<EnhancedRichTextEditorProps & import("react").RefAttributes<EnhancedRichTextEditorRef>>;
12088
- export default _default_3;
12155
+ const _default_4: import("react").ForwardRefExoticComponent<EnhancedRichTextEditorProps & import("react").RefAttributes<EnhancedRichTextEditorRef>>;
12156
+ export default _default_4;
12089
12157
  }
12090
12158
  declare module "libs/reach/feature/content/src/reach-2/common/editor/common/EmojiPicker" {
12091
12159
  import { FC } from 'react';
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.1090",
7
+ "version": "0.5.0-preview.1093",
8
8
  "dependencies": {}
9
9
  }