@livetiles/reach-plugin-types 0.5.0-preview.950 → 0.5.0-preview.951

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 +89 -69
  2. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -3191,12 +3191,18 @@ declare module "libs/reach/util/common/src/theme/theme2/typography" {
3191
3191
  readonly fontSize: "14px";
3192
3192
  readonly lineHeight: "14px";
3193
3193
  };
3194
- readonly caption: {
3194
+ readonly caption1: {
3195
3195
  readonly fontFamily: "Mulish, Arial, sans-serif !important";
3196
3196
  readonly fontSize: "12px";
3197
3197
  readonly letterSpacing: "0.18px";
3198
3198
  readonly lineHeight: "14px";
3199
3199
  };
3200
+ readonly caption2: {
3201
+ readonly fontFamily: "Mulish, Arial, sans-serif !important";
3202
+ readonly fontSize: "10px";
3203
+ readonly letterSpacing: "0.18px";
3204
+ readonly lineHeight: "12px";
3205
+ };
3200
3206
  readonly h1: {
3201
3207
  readonly fontFamily: "Anybody, Arial, sans-serif !important";
3202
3208
  readonly fontSize: "32px";
@@ -3374,12 +3380,18 @@ declare module "libs/reach/util/common/src/theme/theme2/index" {
3374
3380
  readonly fontSize: "14px";
3375
3381
  readonly lineHeight: "14px";
3376
3382
  };
3377
- readonly caption: {
3383
+ readonly caption1: {
3378
3384
  readonly fontFamily: "Mulish, Arial, sans-serif !important";
3379
3385
  readonly fontSize: "12px";
3380
3386
  readonly letterSpacing: "0.18px";
3381
3387
  readonly lineHeight: "14px";
3382
3388
  };
3389
+ readonly caption2: {
3390
+ readonly fontFamily: "Mulish, Arial, sans-serif !important";
3391
+ readonly fontSize: "10px";
3392
+ readonly letterSpacing: "0.18px";
3393
+ readonly lineHeight: "12px";
3394
+ };
3383
3395
  readonly h1: {
3384
3396
  readonly fontFamily: "Anybody, Arial, sans-serif !important";
3385
3397
  readonly fontSize: "32px";
@@ -3575,12 +3587,18 @@ declare module "libs/reach/util/common/src/theme/ThemeService" {
3575
3587
  readonly fontSize: "14px";
3576
3588
  readonly lineHeight: "14px";
3577
3589
  };
3578
- readonly caption: {
3590
+ readonly caption1: {
3579
3591
  readonly fontFamily: "Mulish, Arial, sans-serif !important";
3580
3592
  readonly fontSize: "12px";
3581
3593
  readonly letterSpacing: "0.18px";
3582
3594
  readonly lineHeight: "14px";
3583
3595
  };
3596
+ readonly caption2: {
3597
+ readonly fontFamily: "Mulish, Arial, sans-serif !important";
3598
+ readonly fontSize: "10px";
3599
+ readonly letterSpacing: "0.18px";
3600
+ readonly lineHeight: "12px";
3601
+ };
3584
3602
  readonly h1: {
3585
3603
  readonly fontFamily: "Anybody, Arial, sans-serif !important";
3586
3604
  readonly fontSize: "32px";
@@ -5951,6 +5969,7 @@ declare module "libs/reach/ui/common/src/reach-2/icons/Icons" {
5951
5969
  export { ReactComponent as ManageContentIcon } from './assets/manageContent.svg';
5952
5970
  export { ReactComponent as MentionActiveIcon } from './assets/mention-active.svg';
5953
5971
  export { ReactComponent as MentionIcon } from './assets/mention.svg';
5972
+ export { ReactComponent as MenuActiveIcon } from './assets/menu-active.svg';
5954
5973
  export { ReactComponent as MenuIcon } from './assets/menu.svg';
5955
5974
  export { ReactComponent as MenuDotsIcon } from './assets/menuDots.svg';
5956
5975
  export { ReactComponent as MessagingActiveIcon } from './assets/messaging-active.svg';
@@ -6045,11 +6064,11 @@ declare module "libs/reach/ui/common/src/reach-2/buttons/IconActionButton" {
6045
6064
  import { MouseEventHandler, SVGProps } from 'react';
6046
6065
  import { IconProps } from "libs/reach/ui/common/src/reach-2/Icon";
6047
6066
  export interface IconActionButtonProps extends Omit<IconProps, 'size'> {
6048
- secondarySVG?: SVGProps<SVGElement>;
6049
- iconSize?: number;
6050
- onClick: MouseEventHandler<HTMLButtonElement>;
6051
6067
  disabled?: boolean;
6052
6068
  domIdentifier?: string;
6069
+ iconSize?: number;
6070
+ onClick: MouseEventHandler<HTMLButtonElement>;
6071
+ secondarySVG?: SVGProps<SVGElement>;
6053
6072
  }
6054
6073
  export const IconActionButton: import("react").ForwardRefExoticComponent<IconActionButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
6055
6074
  }
@@ -6112,15 +6131,76 @@ declare module "libs/reach/ui/common/src/reach-2/buttons/FloatingActionButton" {
6112
6131
  const FloatingActionButton: FC<FloatingActionButtonProps>;
6113
6132
  export default FloatingActionButton;
6114
6133
  }
6134
+ declare module "libs/reach/ui/common/src/reach-2/typography/Typography" {
6135
+ import { ComponentPropsWithoutRef, ElementType, PropsWithChildren } from 'react';
6136
+ const variantMapping: {
6137
+ readonly body1: "span";
6138
+ readonly body2: "span";
6139
+ readonly buttonLabel1: "span";
6140
+ readonly buttonLabel2: "span";
6141
+ readonly caption1: "span";
6142
+ readonly caption2: "span";
6143
+ readonly h1: "h1";
6144
+ readonly h2: "h2";
6145
+ readonly h3: "h3";
6146
+ readonly h4: "h4";
6147
+ readonly inherit: "span";
6148
+ readonly subtitle1: "span";
6149
+ readonly subtitle2: "span";
6150
+ };
6151
+ export interface ITypographyProps<T extends ElementType = typeof variantMapping['body1']> {
6152
+ /**
6153
+ * Set the text alignment.
6154
+ * @default 'inherit'
6155
+ */
6156
+ align?: 'center' | 'justify' | 'left' | 'right';
6157
+ /**
6158
+ * The HTML element to use as the container for the text (overrides the variant default HTML element).
6159
+ * @default undefined
6160
+ */
6161
+ as?: T;
6162
+ /**
6163
+ * Set the font decoration/style.
6164
+ * @default undefined
6165
+ */
6166
+ decoration?: 'line-through' | 'underline';
6167
+ /**
6168
+ * Whether text should be italic
6169
+ * @default false
6170
+ */
6171
+ italic?: boolean;
6172
+ /**
6173
+ * If `true`, the text will not wrap, but instead will truncate with a text overflow ellipsis.
6174
+ *
6175
+ * Note that text overflow can only happen with block or inline-block level elements
6176
+ * (the element needs to have a width in order to overflow).
6177
+ * @default false
6178
+ */
6179
+ noWrap?: boolean;
6180
+ /**
6181
+ * Set the typography variant.
6182
+ * @default 'body1'
6183
+ */
6184
+ variant?: keyof typeof variantMapping;
6185
+ /**
6186
+ * Set the font weight.
6187
+ * @default 'normal'
6188
+ */
6189
+ weight?: 'bold' | 'normal' | 'semibold';
6190
+ }
6191
+ type TTypographyOverridenProps<T extends ElementType> = PropsWithChildren<ITypographyProps<T>> & Omit<ComponentPropsWithoutRef<T>, keyof ITypographyProps<T>>;
6192
+ const Typography: <T extends ElementType<any> = "span">(props: TTypographyOverridenProps<T>) => JSX.Element;
6193
+ export default Typography;
6194
+ }
6115
6195
  declare module "libs/reach/ui/common/src/reach-2/buttons/ProfileButton" {
6116
6196
  import { FC } from 'react';
6117
6197
  import { AvatarSize } from "libs/reach/ui/common/src/reach-2/avatar/index";
6118
- const ProfileButton: FC<{
6198
+ interface IProfileButtonProps {
6119
6199
  className?: string;
6120
- labelDirection?: 'left' | 'right';
6121
6200
  showLabel?: boolean;
6122
6201
  size?: AvatarSize;
6123
- }>;
6202
+ }
6203
+ const ProfileButton: FC<IProfileButtonProps>;
6124
6204
  export default ProfileButton;
6125
6205
  }
6126
6206
  declare module "libs/reach/ui/common/src/reach-2/buttons/index" {
@@ -6311,66 +6391,6 @@ declare module "libs/reach/ui/common/src/reach-2/TextField" {
6311
6391
  const TextField: FC<ITextFieldProps>;
6312
6392
  export default TextField;
6313
6393
  }
6314
- declare module "libs/reach/ui/common/src/reach-2/typography/Typography" {
6315
- import { ComponentPropsWithoutRef, ElementType, PropsWithChildren } from 'react';
6316
- const variantMapping: {
6317
- readonly body1: "span";
6318
- readonly body2: "span";
6319
- readonly buttonLabel1: "span";
6320
- readonly buttonLabel2: "span";
6321
- readonly caption: "span";
6322
- readonly h1: "h1";
6323
- readonly h2: "h2";
6324
- readonly h3: "h3";
6325
- readonly h4: "h4";
6326
- readonly inherit: "span";
6327
- readonly subtitle1: "span";
6328
- readonly subtitle2: "span";
6329
- };
6330
- export interface ITypographyProps<T extends ElementType = typeof variantMapping['body1']> {
6331
- /**
6332
- * Set the text alignment.
6333
- * @default 'inherit'
6334
- */
6335
- align?: 'center' | 'justify' | 'left' | 'right';
6336
- /**
6337
- * The HTML element to use as the container for the text (overrides the variant default HTML element).
6338
- * @default undefined
6339
- */
6340
- as?: T;
6341
- /**
6342
- * Set the font decoration/style.
6343
- * @default undefined
6344
- */
6345
- decoration?: 'line-through' | 'underline';
6346
- /**
6347
- * Whether text should be italic
6348
- * @default false
6349
- */
6350
- italic?: boolean;
6351
- /**
6352
- * If `true`, the text will not wrap, but instead will truncate with a text overflow ellipsis.
6353
- *
6354
- * Note that text overflow can only happen with block or inline-block level elements
6355
- * (the element needs to have a width in order to overflow).
6356
- * @default false
6357
- */
6358
- noWrap?: boolean;
6359
- /**
6360
- * Set the typography variant.
6361
- * @default 'body1'
6362
- */
6363
- variant?: keyof typeof variantMapping;
6364
- /**
6365
- * Set the font weight.
6366
- * @default 'normal'
6367
- */
6368
- weight?: 'bold' | 'normal' | 'semibold';
6369
- }
6370
- type TTypographyOverridenProps<T extends ElementType> = PropsWithChildren<ITypographyProps<T>> & Omit<ComponentPropsWithoutRef<T>, keyof ITypographyProps<T>>;
6371
- const Typography: <T extends ElementType<any> = "span">(props: TTypographyOverridenProps<T>) => JSX.Element;
6372
- export default Typography;
6373
- }
6374
6394
  declare module "libs/reach/ui/common/src/reach-2/utils" {
6375
6395
  export function getNormalizedPercentageBasedOnDeviceHeight(heightToConvert: number, safeArea?: number, fullyExpandThreshold?: number): number;
6376
6396
  export function useNormalizedBreakpointValuesBasedOnDeviceHeight(heightToConvert: number, safeArea?: number, fullyExpandThreshold?: number): {
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.950",
7
+ "version": "0.5.0-preview.951",
8
8
  "dependencies": {}
9
9
  }