@livetiles/reach-plugin-types 0.5.0-preview.1224 → 0.5.0-preview.1226
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 +84 -63
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -6306,6 +6306,85 @@ declare module "libs/reach/ui/common/src/reach-2/avatar/index" {
|
|
|
6306
6306
|
export type { AvatarUser } from "libs/reach/ui/common/src/reach-2/avatar/GroupAvatar";
|
|
6307
6307
|
export { default as Persona } from "libs/reach/ui/common/src/reach-2/avatar/Persona";
|
|
6308
6308
|
}
|
|
6309
|
+
declare module "libs/reach/ui/common/src/reach-2/typography/Typography" {
|
|
6310
|
+
import { ComponentPropsWithoutRef, ElementType, PropsWithChildren } from 'react';
|
|
6311
|
+
const variantMapping: {
|
|
6312
|
+
readonly body1: "span";
|
|
6313
|
+
readonly body2: "span";
|
|
6314
|
+
readonly buttonLabel1: "span";
|
|
6315
|
+
readonly buttonLabel2: "span";
|
|
6316
|
+
readonly caption1: "span";
|
|
6317
|
+
readonly caption2: "span";
|
|
6318
|
+
readonly h1: "h1";
|
|
6319
|
+
readonly h2: "h2";
|
|
6320
|
+
readonly h3: "h3";
|
|
6321
|
+
readonly h4: "h4";
|
|
6322
|
+
readonly inherit: "span";
|
|
6323
|
+
readonly subtitle1: "span";
|
|
6324
|
+
readonly subtitle2: "span";
|
|
6325
|
+
};
|
|
6326
|
+
export interface ITypographyProps<T extends ElementType = (typeof variantMapping)['body1']> {
|
|
6327
|
+
/**
|
|
6328
|
+
* Set the text alignment.
|
|
6329
|
+
* @default 'inherit'
|
|
6330
|
+
*/
|
|
6331
|
+
align?: 'center' | 'justify' | 'left' | 'right';
|
|
6332
|
+
/**
|
|
6333
|
+
* The HTML element to use as the container for the text (overrides the variant default HTML element).
|
|
6334
|
+
* @default undefined
|
|
6335
|
+
*/
|
|
6336
|
+
as?: T;
|
|
6337
|
+
/**
|
|
6338
|
+
* Set the font decoration/style.
|
|
6339
|
+
* @default undefined
|
|
6340
|
+
*/
|
|
6341
|
+
decoration?: 'line-through' | 'underline';
|
|
6342
|
+
/**
|
|
6343
|
+
* Whether text should be italic
|
|
6344
|
+
* @default false
|
|
6345
|
+
*/
|
|
6346
|
+
italic?: boolean;
|
|
6347
|
+
/**
|
|
6348
|
+
* If `true`, the text will not wrap, but instead will truncate with a text overflow ellipsis.
|
|
6349
|
+
*
|
|
6350
|
+
* Note that text overflow can only happen with block or inline-block level elements
|
|
6351
|
+
* (the element needs to have a width in order to overflow).
|
|
6352
|
+
* @default false
|
|
6353
|
+
*/
|
|
6354
|
+
noWrap?: boolean;
|
|
6355
|
+
/**
|
|
6356
|
+
* Set the typography variant.
|
|
6357
|
+
* @default 'body1'
|
|
6358
|
+
*/
|
|
6359
|
+
variant?: keyof typeof variantMapping;
|
|
6360
|
+
/**
|
|
6361
|
+
* Set the font weight.
|
|
6362
|
+
* @default 'normal'
|
|
6363
|
+
*/
|
|
6364
|
+
weight?: 'bold' | 'normal' | 'semibold';
|
|
6365
|
+
}
|
|
6366
|
+
type TTypographyOverridenProps<T extends ElementType> = PropsWithChildren<ITypographyProps<T>> & Omit<ComponentPropsWithoutRef<T>, keyof ITypographyProps<T>>;
|
|
6367
|
+
const Typography: <T extends ElementType<any> = "span">(props: TTypographyOverridenProps<T>) => JSX.Element;
|
|
6368
|
+
export default Typography;
|
|
6369
|
+
}
|
|
6370
|
+
declare module "libs/reach/ui/common/src/reach-2/breadcrumb/Breadcrumb" {
|
|
6371
|
+
import { FC } from 'react';
|
|
6372
|
+
export interface IBreadcrumbItem {
|
|
6373
|
+
path: string;
|
|
6374
|
+
pathName: string;
|
|
6375
|
+
}
|
|
6376
|
+
interface IBreadcrumbProps {
|
|
6377
|
+
className?: string;
|
|
6378
|
+
pathList: IBreadcrumbItem[];
|
|
6379
|
+
separator?: string;
|
|
6380
|
+
}
|
|
6381
|
+
const Breadcrumb: FC<IBreadcrumbProps>;
|
|
6382
|
+
export default Breadcrumb;
|
|
6383
|
+
}
|
|
6384
|
+
declare module "libs/reach/ui/common/src/reach-2/breadcrumb/index" {
|
|
6385
|
+
export { default as Breadcrumb } from "libs/reach/ui/common/src/reach-2/breadcrumb/Breadcrumb";
|
|
6386
|
+
export type { IBreadcrumbItem } from "libs/reach/ui/common/src/reach-2/breadcrumb/Breadcrumb";
|
|
6387
|
+
}
|
|
6309
6388
|
declare module "libs/reach/ui/common/src/reach-2/icons/Icon" {
|
|
6310
6389
|
import { FC, SVGProps } from 'react';
|
|
6311
6390
|
export interface IconProps {
|
|
@@ -6602,67 +6681,6 @@ declare module "libs/reach/ui/common/src/reach-2/buttons/FloatingButton" {
|
|
|
6602
6681
|
const FloatingButton: FC<FloatingButtonProps>;
|
|
6603
6682
|
export default FloatingButton;
|
|
6604
6683
|
}
|
|
6605
|
-
declare module "libs/reach/ui/common/src/reach-2/typography/Typography" {
|
|
6606
|
-
import { ComponentPropsWithoutRef, ElementType, PropsWithChildren } from 'react';
|
|
6607
|
-
const variantMapping: {
|
|
6608
|
-
readonly body1: "span";
|
|
6609
|
-
readonly body2: "span";
|
|
6610
|
-
readonly buttonLabel1: "span";
|
|
6611
|
-
readonly buttonLabel2: "span";
|
|
6612
|
-
readonly caption1: "span";
|
|
6613
|
-
readonly caption2: "span";
|
|
6614
|
-
readonly h1: "h1";
|
|
6615
|
-
readonly h2: "h2";
|
|
6616
|
-
readonly h3: "h3";
|
|
6617
|
-
readonly h4: "h4";
|
|
6618
|
-
readonly inherit: "span";
|
|
6619
|
-
readonly subtitle1: "span";
|
|
6620
|
-
readonly subtitle2: "span";
|
|
6621
|
-
};
|
|
6622
|
-
export interface ITypographyProps<T extends ElementType = (typeof variantMapping)['body1']> {
|
|
6623
|
-
/**
|
|
6624
|
-
* Set the text alignment.
|
|
6625
|
-
* @default 'inherit'
|
|
6626
|
-
*/
|
|
6627
|
-
align?: 'center' | 'justify' | 'left' | 'right';
|
|
6628
|
-
/**
|
|
6629
|
-
* The HTML element to use as the container for the text (overrides the variant default HTML element).
|
|
6630
|
-
* @default undefined
|
|
6631
|
-
*/
|
|
6632
|
-
as?: T;
|
|
6633
|
-
/**
|
|
6634
|
-
* Set the font decoration/style.
|
|
6635
|
-
* @default undefined
|
|
6636
|
-
*/
|
|
6637
|
-
decoration?: 'line-through' | 'underline';
|
|
6638
|
-
/**
|
|
6639
|
-
* Whether text should be italic
|
|
6640
|
-
* @default false
|
|
6641
|
-
*/
|
|
6642
|
-
italic?: boolean;
|
|
6643
|
-
/**
|
|
6644
|
-
* If `true`, the text will not wrap, but instead will truncate with a text overflow ellipsis.
|
|
6645
|
-
*
|
|
6646
|
-
* Note that text overflow can only happen with block or inline-block level elements
|
|
6647
|
-
* (the element needs to have a width in order to overflow).
|
|
6648
|
-
* @default false
|
|
6649
|
-
*/
|
|
6650
|
-
noWrap?: boolean;
|
|
6651
|
-
/**
|
|
6652
|
-
* Set the typography variant.
|
|
6653
|
-
* @default 'body1'
|
|
6654
|
-
*/
|
|
6655
|
-
variant?: keyof typeof variantMapping;
|
|
6656
|
-
/**
|
|
6657
|
-
* Set the font weight.
|
|
6658
|
-
* @default 'normal'
|
|
6659
|
-
*/
|
|
6660
|
-
weight?: 'bold' | 'normal' | 'semibold';
|
|
6661
|
-
}
|
|
6662
|
-
type TTypographyOverridenProps<T extends ElementType> = PropsWithChildren<ITypographyProps<T>> & Omit<ComponentPropsWithoutRef<T>, keyof ITypographyProps<T>>;
|
|
6663
|
-
const Typography: <T extends ElementType<any> = "span">(props: TTypographyOverridenProps<T>) => JSX.Element;
|
|
6664
|
-
export default Typography;
|
|
6665
|
-
}
|
|
6666
6684
|
declare module "libs/reach/ui/common/src/reach-2/buttons/ProfileButton" {
|
|
6667
6685
|
import { FC } from 'react';
|
|
6668
6686
|
import { AvatarSize } from "libs/reach/ui/common/src/reach-2/avatar/index";
|
|
@@ -7063,6 +7081,7 @@ declare module "libs/reach/ui/common/src/reach-2/select/components/PopoverConten
|
|
|
7063
7081
|
focusedIndex: number | null;
|
|
7064
7082
|
handleItemSelected: (item: T, index: number) => void;
|
|
7065
7083
|
handleRemoveAllItems: (e: MouseEvent<Element>) => void;
|
|
7084
|
+
headerLabelId?: string;
|
|
7066
7085
|
initialSelectedItems: T[];
|
|
7067
7086
|
isItemSelected: (id: string) => boolean;
|
|
7068
7087
|
listWrapperRef: MutableRefObject<HTMLDivElement | null>;
|
|
@@ -7073,7 +7092,7 @@ declare module "libs/reach/ui/common/src/reach-2/select/components/PopoverConten
|
|
|
7073
7092
|
renderItem?: (item: T, isSelected: boolean, onSelect: () => void) => JSX.Element;
|
|
7074
7093
|
selectedValues: T[];
|
|
7075
7094
|
}
|
|
7076
|
-
const PopoverContent: <T extends ISelectItemProps>({ areOptionsGrouped, emptyLabel, focusedIndex, handleItemSelected, handleRemoveAllItems, initialSelectedItems, isItemSelected, listWrapperRef, loadingOptions, menuListOptions, multiple, renderGroupedOptions, renderItem, selectedValues, }: IPopoverContentProps<T>) => JSX.Element;
|
|
7095
|
+
const PopoverContent: <T extends ISelectItemProps>({ areOptionsGrouped, emptyLabel, focusedIndex, handleItemSelected, handleRemoveAllItems, headerLabelId, initialSelectedItems, isItemSelected, listWrapperRef, loadingOptions, menuListOptions, multiple, renderGroupedOptions, renderItem, selectedValues, }: IPopoverContentProps<T>) => JSX.Element;
|
|
7077
7096
|
export default PopoverContent;
|
|
7078
7097
|
}
|
|
7079
7098
|
declare module "libs/reach/ui/common/src/reach-2/select/components/Trigger" {
|
|
@@ -7154,12 +7173,13 @@ declare module "libs/reach/ui/common/src/reach-2/select/Select" {
|
|
|
7154
7173
|
searchable?: boolean;
|
|
7155
7174
|
selectedValuesOptions?: {
|
|
7156
7175
|
hide?: boolean;
|
|
7176
|
+
popoverHeaderLabelId?: string;
|
|
7157
7177
|
noWrap?: boolean;
|
|
7158
7178
|
};
|
|
7159
7179
|
size?: SelectSize;
|
|
7160
7180
|
values?: T[];
|
|
7161
7181
|
}
|
|
7162
|
-
const Select: <T extends ISelectItemProps = ISelectItemProps>({ allowCreation, className, disabled, emptyLabel, errorItems, errorLabel, fitToContent, forcePlaceholder, fullyControlled, hideChevron, leftIcon, loadingOptions, multiple, onAddItem, onInputChange, onItemsChange, onItemSelected, onRemoveItem, onScrollEnd, options: preprocessedOptions, placeholder, popoverAlign, popoverAlignOffset, popoverHeight, popoverWidth, renderItem, searchable, selectedValuesOptions, size, values, }: ISelectProps<T>) => JSX.Element;
|
|
7182
|
+
const Select: <T extends ISelectItemProps = ISelectItemProps>({ allowCreation, className, disabled, emptyLabel, errorItems, errorLabel, fitToContent, forcePlaceholder, fullyControlled, hideChevron, leftIcon, loadingOptions, multiple, onAddItem, onInputChange, onItemsChange, onItemSelected, onRemoveItem, onScrollEnd, options: preprocessedOptions, placeholder, popoverAlign, popoverAlignOffset, popoverHeight, popoverWidth, renderItem, searchable, selectedValuesOptions: allSelectedValuesOptions, size, values, }: ISelectProps<T>) => JSX.Element;
|
|
7163
7183
|
export default Select;
|
|
7164
7184
|
}
|
|
7165
7185
|
declare module "libs/reach/ui/common/src/reach-2/select/UserSelect" {
|
|
@@ -7237,6 +7257,7 @@ declare module "libs/reach/ui/common/src/reach-2/tags/SelectableTag" {
|
|
|
7237
7257
|
declare module "libs/reach/ui/common/src/reach-2/index" {
|
|
7238
7258
|
export * from "libs/reach/ui/common/src/reach-2/assets/index";
|
|
7239
7259
|
export * from "libs/reach/ui/common/src/reach-2/avatar/index";
|
|
7260
|
+
export * from "libs/reach/ui/common/src/reach-2/breadcrumb/index";
|
|
7240
7261
|
export * from "libs/reach/ui/common/src/reach-2/buttons/index";
|
|
7241
7262
|
export * from "libs/reach/ui/common/src/reach-2/carousel/index";
|
|
7242
7263
|
export * from "libs/reach/ui/common/src/reach-2/DateTimeDisplay";
|