@livetiles/reach-plugin-types 0.5.0-preview.979 → 0.5.0-preview.980

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 +62 -91
  2. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -6153,86 +6153,6 @@ declare module "libs/reach/ui/common/src/reach-2/buttons/ContentActionButton" {
6153
6153
  }
6154
6154
  export const ContentActionButton: import("react").ForwardRefExoticComponent<ContentActionButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
6155
6155
  }
6156
- declare module "libs/reach/ui/common/src/reach-2/typography/Typography" {
6157
- import { ComponentPropsWithoutRef, ElementType, PropsWithChildren } from 'react';
6158
- const variantMapping: {
6159
- readonly body1: "span";
6160
- readonly body2: "span";
6161
- readonly buttonLabel1: "span";
6162
- readonly buttonLabel2: "span";
6163
- readonly caption1: "span";
6164
- readonly caption2: "span";
6165
- readonly h1: "h1";
6166
- readonly h2: "h2";
6167
- readonly h3: "h3";
6168
- readonly h4: "h4";
6169
- readonly inherit: "span";
6170
- readonly subtitle1: "span";
6171
- readonly subtitle2: "span";
6172
- };
6173
- export interface ITypographyProps<T extends ElementType = typeof variantMapping['body1']> {
6174
- /**
6175
- * Set the text alignment.
6176
- * @default 'inherit'
6177
- */
6178
- align?: 'center' | 'justify' | 'left' | 'right';
6179
- /**
6180
- * The HTML element to use as the container for the text (overrides the variant default HTML element).
6181
- * @default undefined
6182
- */
6183
- as?: T;
6184
- /**
6185
- * Set the font decoration/style.
6186
- * @default undefined
6187
- */
6188
- decoration?: 'line-through' | 'underline';
6189
- /**
6190
- * Whether text should be italic
6191
- * @default false
6192
- */
6193
- italic?: boolean;
6194
- /**
6195
- * If `true`, the text will not wrap, but instead will truncate with a text overflow ellipsis.
6196
- *
6197
- * Note that text overflow can only happen with block or inline-block level elements
6198
- * (the element needs to have a width in order to overflow).
6199
- * @default false
6200
- */
6201
- noWrap?: boolean;
6202
- /**
6203
- * Set the typography variant.
6204
- * @default 'body1'
6205
- */
6206
- variant?: keyof typeof variantMapping;
6207
- /**
6208
- * Set the font weight.
6209
- * @default 'normal'
6210
- */
6211
- weight?: 'bold' | 'normal' | 'semibold';
6212
- }
6213
- type TTypographyOverridenProps<T extends ElementType> = PropsWithChildren<ITypographyProps<T>> & Omit<ComponentPropsWithoutRef<T>, keyof ITypographyProps<T>>;
6214
- const Typography: <T extends ElementType<any> = "span">(props: TTypographyOverridenProps<T>) => JSX.Element;
6215
- export default Typography;
6216
- }
6217
- declare module "libs/reach/ui/common/src/reach-2/buttons/FlexButton" {
6218
- import { FC, MouseEvent, SVGProps } from 'react';
6219
- import { ITypographyProps } from "libs/reach/ui/common/src/reach-2/typography/Typography";
6220
- export type FlexButtonDirectionType = 'column' | 'column-reverse' | 'row' | 'row-reverse';
6221
- export interface FlexButtonProps {
6222
- className?: string;
6223
- defaultSVG: SVGProps<SVGElement>;
6224
- disabled?: boolean;
6225
- flexDirection?: FlexButtonDirectionType;
6226
- gap?: number;
6227
- hoveredSVG?: SVGProps<SVGElement>;
6228
- iconSize?: number;
6229
- label?: string | number;
6230
- typography?: ITypographyProps['variant'];
6231
- onClick?: (e: MouseEvent<HTMLButtonElement>) => void;
6232
- }
6233
- const FlexButton: FC<FlexButtonProps>;
6234
- export default FlexButton;
6235
- }
6236
6156
  declare module "libs/reach/ui/common/src/reach-2/buttons/FloatingButton" {
6237
6157
  import { FC, MouseEventHandler, SVGProps } from 'react';
6238
6158
  export type FloatingButtonSizeType = 'Large' | 'Small';
@@ -6247,14 +6167,6 @@ declare module "libs/reach/ui/common/src/reach-2/buttons/FloatingButton" {
6247
6167
  const FloatingButton: FC<FloatingButtonProps>;
6248
6168
  export default FloatingButton;
6249
6169
  }
6250
- declare module "libs/reach/ui/common/src/reach-2/buttons/IconNavLink" {
6251
- import { FC, MouseEvent } from 'react';
6252
- import { IconProps } from "libs/reach/ui/common/src/reach-2/Icon";
6253
- export const IconNavLink: FC<IconProps & {
6254
- to: string;
6255
- onClick?: (e: MouseEvent<HTMLAnchorElement>) => void;
6256
- }>;
6257
- }
6258
6170
  declare module "libs/reach/ui/common/src/reach-2/avatar/Avatar" {
6259
6171
  import { FC } from 'react';
6260
6172
  export enum AvatarSize {
@@ -6333,10 +6245,8 @@ declare module "libs/reach/ui/common/src/reach-2/buttons/index" {
6333
6245
  export * from "libs/reach/ui/common/src/reach-2/buttons/BackButton";
6334
6246
  export { BaseButtonStyle } from "libs/reach/ui/common/src/reach-2/buttons/BaseButton";
6335
6247
  export * from "libs/reach/ui/common/src/reach-2/buttons/ContentActionButton";
6336
- export { default as FlexButton } from "libs/reach/ui/common/src/reach-2/buttons/FlexButton";
6337
6248
  export { default as FloatingButton } from "libs/reach/ui/common/src/reach-2/buttons/FloatingButton";
6338
6249
  export { default as IconButton2 } from "libs/reach/ui/common/src/reach-2/buttons/IconButton";
6339
- export * from "libs/reach/ui/common/src/reach-2/buttons/IconNavLink";
6340
6250
  export { default as ProfileButton } from "libs/reach/ui/common/src/reach-2/buttons/ProfileButton";
6341
6251
  export * from "libs/reach/ui/common/src/reach-2/buttons/StandardButtons";
6342
6252
  }
@@ -6375,6 +6285,67 @@ declare module "libs/reach/ui/common/src/reach-2/inputs/OTPInput" {
6375
6285
  declare module "libs/reach/ui/common/src/reach-2/inputs/index" {
6376
6286
  export { default as OTPInput } from "libs/reach/ui/common/src/reach-2/inputs/OTPInput";
6377
6287
  }
6288
+ declare module "libs/reach/ui/common/src/reach-2/typography/Typography" {
6289
+ import { ComponentPropsWithoutRef, ElementType, PropsWithChildren } from 'react';
6290
+ const variantMapping: {
6291
+ readonly body1: "span";
6292
+ readonly body2: "span";
6293
+ readonly buttonLabel1: "span";
6294
+ readonly buttonLabel2: "span";
6295
+ readonly caption1: "span";
6296
+ readonly caption2: "span";
6297
+ readonly h1: "h1";
6298
+ readonly h2: "h2";
6299
+ readonly h3: "h3";
6300
+ readonly h4: "h4";
6301
+ readonly inherit: "span";
6302
+ readonly subtitle1: "span";
6303
+ readonly subtitle2: "span";
6304
+ };
6305
+ export interface ITypographyProps<T extends ElementType = typeof variantMapping['body1']> {
6306
+ /**
6307
+ * Set the text alignment.
6308
+ * @default 'inherit'
6309
+ */
6310
+ align?: 'center' | 'justify' | 'left' | 'right';
6311
+ /**
6312
+ * The HTML element to use as the container for the text (overrides the variant default HTML element).
6313
+ * @default undefined
6314
+ */
6315
+ as?: T;
6316
+ /**
6317
+ * Set the font decoration/style.
6318
+ * @default undefined
6319
+ */
6320
+ decoration?: 'line-through' | 'underline';
6321
+ /**
6322
+ * Whether text should be italic
6323
+ * @default false
6324
+ */
6325
+ italic?: boolean;
6326
+ /**
6327
+ * If `true`, the text will not wrap, but instead will truncate with a text overflow ellipsis.
6328
+ *
6329
+ * Note that text overflow can only happen with block or inline-block level elements
6330
+ * (the element needs to have a width in order to overflow).
6331
+ * @default false
6332
+ */
6333
+ noWrap?: boolean;
6334
+ /**
6335
+ * Set the typography variant.
6336
+ * @default 'body1'
6337
+ */
6338
+ variant?: keyof typeof variantMapping;
6339
+ /**
6340
+ * Set the font weight.
6341
+ * @default 'normal'
6342
+ */
6343
+ weight?: 'bold' | 'normal' | 'semibold';
6344
+ }
6345
+ type TTypographyOverridenProps<T extends ElementType> = PropsWithChildren<ITypographyProps<T>> & Omit<ComponentPropsWithoutRef<T>, keyof ITypographyProps<T>>;
6346
+ const Typography: <T extends ElementType<any> = "span">(props: TTypographyOverridenProps<T>) => JSX.Element;
6347
+ export default Typography;
6348
+ }
6378
6349
  declare module "libs/reach/ui/common/src/reach-2/lists/MenuItem" {
6379
6350
  import { FC, MouseEvent, SVGProps } from 'react';
6380
6351
  export interface MenuItemProps {
@@ -11494,7 +11465,7 @@ declare module "libs/reach/feature/content/src/reach-2/buttons/ButtonWithMenu" {
11494
11465
  export interface ButtonWithMenuProps {
11495
11466
  align?: BasePopoverAlignType;
11496
11467
  alignOffset?: number;
11497
- button: (onClick: () => void) => JSX.Element;
11468
+ button: (onClick: () => void, isOpen: boolean) => JSX.Element;
11498
11469
  className?: string;
11499
11470
  children: ReactNode | ((dismissPopover: () => void) => ReactNode);
11500
11471
  drawerHeight?: 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.979",
7
+ "version": "0.5.0-preview.980",
8
8
  "dependencies": {}
9
9
  }