@livetiles/reach-plugin-types 0.5.0-preview.1223 → 0.5.0-preview.1225
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 +80 -61
- 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";
|
|
@@ -7237,6 +7255,7 @@ declare module "libs/reach/ui/common/src/reach-2/tags/SelectableTag" {
|
|
|
7237
7255
|
declare module "libs/reach/ui/common/src/reach-2/index" {
|
|
7238
7256
|
export * from "libs/reach/ui/common/src/reach-2/assets/index";
|
|
7239
7257
|
export * from "libs/reach/ui/common/src/reach-2/avatar/index";
|
|
7258
|
+
export * from "libs/reach/ui/common/src/reach-2/breadcrumb/index";
|
|
7240
7259
|
export * from "libs/reach/ui/common/src/reach-2/buttons/index";
|
|
7241
7260
|
export * from "libs/reach/ui/common/src/reach-2/carousel/index";
|
|
7242
7261
|
export * from "libs/reach/ui/common/src/reach-2/DateTimeDisplay";
|