@livetiles/reach-plugin-types 0.5.0-preview.1092 → 0.5.0-preview.1094

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