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

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 +31 -36
  2. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -5887,34 +5887,16 @@ declare module "libs/reach/ui/common/src/reach-2/DateTimeDisplay" {
5887
5887
  }
5888
5888
  export const DateTimeDisplay: FC<Props>;
5889
5889
  }
5890
- declare module "libs/reach/ui/common/src/reach-2/Icon" {
5890
+ declare module "libs/reach/ui/common/src/reach-2/icons/Icon" {
5891
5891
  import { FC, SVGProps } from 'react';
5892
- export enum IconLabelDirection {
5893
- Row = "row",
5894
- Column = "column"
5895
- }
5896
- export interface IconProps {
5897
- defaultSVG: SVGProps<SVGElement>;
5898
- hoveredSVG?: SVGProps<SVGElement>;
5899
- label?: string | number;
5900
- labelDirection?: IconLabelDirection;
5901
- labelGap?: number;
5902
- reverseIcon?: boolean;
5903
- size?: number;
5904
- className?: string;
5905
- }
5906
- export const Icon: FC<IconProps>;
5907
- }
5908
- declare module "libs/reach/ui/common/src/reach-2/icons/IconHost" {
5909
- import { FC, SVGProps } from 'react';
5910
- interface IconHostProps {
5892
+ interface IconProps {
5911
5893
  className?: string;
5912
5894
  defaultSVG: SVGProps<SVGElement>;
5913
5895
  hoveredSVG?: SVGProps<SVGElement>;
5914
5896
  size?: number;
5915
5897
  }
5916
- const IconHost: FC<IconHostProps>;
5917
- export default IconHost;
5898
+ const Icon: FC<IconProps>;
5899
+ export default Icon;
5918
5900
  }
5919
5901
  declare module "libs/reach/ui/common/src/reach-2/icons/Icons" {
5920
5902
  export { ReactComponent as AddActiveIcon } from './assets/add-active.svg';
@@ -6021,7 +6003,7 @@ declare module "libs/reach/ui/common/src/reach-2/icons/Icons" {
6021
6003
  export { ReactComponent as WindowsIcon } from './assets/windows.svg';
6022
6004
  }
6023
6005
  declare module "libs/reach/ui/common/src/reach-2/icons/index" {
6024
- export { default as IconHost } from "libs/reach/ui/common/src/reach-2/icons/IconHost";
6006
+ export { default as Icon } from "libs/reach/ui/common/src/reach-2/icons/Icon";
6025
6007
  export * from "libs/reach/ui/common/src/reach-2/icons/Icons";
6026
6008
  }
6027
6009
  declare module "libs/reach/ui/common/src/reach-2/progress/Skeleton" {
@@ -6134,23 +6116,37 @@ declare module "libs/reach/ui/common/src/reach-2/buttons/BackButton" {
6134
6116
  className?: string;
6135
6117
  }>;
6136
6118
  }
6137
- declare module "libs/reach/ui/common/src/reach-2/buttons/IconActionButton" {
6119
+ declare module "libs/reach/ui/common/src/reach-2/buttons/ContentActionButton" {
6138
6120
  import { MouseEventHandler, SVGProps } from 'react';
6139
- import { IconProps } from "libs/reach/ui/common/src/reach-2/Icon";
6140
- export interface IconActionButtonProps extends Omit<IconProps, 'size'> {
6121
+ /**
6122
+ * @deprecated
6123
+ */
6124
+ export enum ContentActionDirection {
6125
+ Row = "row",
6126
+ Column = "column"
6127
+ }
6128
+ /**
6129
+ * @deprecated
6130
+ */
6131
+ export interface ContentActionButtonProps {
6132
+ className?: string;
6133
+ defaultSVG: SVGProps<SVGElement>;
6141
6134
  disabled?: boolean;
6142
6135
  domIdentifier?: string;
6136
+ hoveredSVG?: SVGProps<SVGElement>;
6143
6137
  iconSize?: number;
6138
+ isSelected?: boolean;
6139
+ label?: string | number;
6140
+ labelDirection?: ContentActionDirection;
6141
+ labelGap?: number;
6144
6142
  onClick: MouseEventHandler<HTMLButtonElement>;
6145
6143
  secondarySVG?: SVGProps<SVGElement>;
6146
6144
  }
6147
- export const IconActionButton: import("react").ForwardRefExoticComponent<IconActionButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
6148
- }
6149
- declare module "libs/reach/ui/common/src/reach-2/buttons/ContentActionButton" {
6150
- import { IconActionButtonProps } from "libs/reach/ui/common/src/reach-2/buttons/IconActionButton";
6151
- export interface ContentActionButtonProps extends IconActionButtonProps {
6152
- isSelected?: boolean;
6153
- }
6145
+ /**
6146
+ * @deprecated
6147
+ * Don't use this component use `StandardButton` or `IconButton` instead
6148
+ * or create a specific button for your use case.
6149
+ */
6154
6150
  export const ContentActionButton: import("react").ForwardRefExoticComponent<ContentActionButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
6155
6151
  }
6156
6152
  declare module "libs/reach/ui/common/src/reach-2/buttons/FloatingButton" {
@@ -6235,7 +6231,7 @@ declare module "libs/reach/ui/common/src/reach-2/buttons/ProfileButton" {
6235
6231
  const ProfileButton: FC<IProfileButtonProps>;
6236
6232
  export default ProfileButton;
6237
6233
  }
6238
- declare module "libs/reach/ui/common/src/reach-2/buttons/StandardButtons" {
6234
+ declare module "libs/reach/ui/common/src/reach-2/buttons/StandardButton" {
6239
6235
  export const PrimaryButton: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("libs/reach/ui/common/src/reach-2/buttons/BaseButton").BaseButtonProps & import("react").RefAttributes<HTMLButtonElement>>, import("styled-components").DefaultTheme, {}, never>;
6240
6236
  export const SecondaryButton: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("libs/reach/ui/common/src/reach-2/buttons/BaseButton").BaseButtonProps & import("react").RefAttributes<HTMLButtonElement>>, import("styled-components").DefaultTheme, {}, never>;
6241
6237
  export const TertiaryButton: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("libs/reach/ui/common/src/reach-2/buttons/BaseButton").BaseButtonProps & import("react").RefAttributes<HTMLButtonElement>>, import("styled-components").DefaultTheme, {}, never>;
@@ -6248,7 +6244,7 @@ declare module "libs/reach/ui/common/src/reach-2/buttons/index" {
6248
6244
  export { default as FloatingButton } from "libs/reach/ui/common/src/reach-2/buttons/FloatingButton";
6249
6245
  export { default as IconButton2 } from "libs/reach/ui/common/src/reach-2/buttons/IconButton";
6250
6246
  export { default as ProfileButton } from "libs/reach/ui/common/src/reach-2/buttons/ProfileButton";
6251
- export * from "libs/reach/ui/common/src/reach-2/buttons/StandardButtons";
6247
+ export * from "libs/reach/ui/common/src/reach-2/buttons/StandardButton";
6252
6248
  }
6253
6249
  declare module "libs/reach/ui/common/src/reach-2/SearchBox" {
6254
6250
  import { FC } from 'react';
@@ -6571,7 +6567,6 @@ declare module "libs/reach/ui/common/src/reach-2/utils" {
6571
6567
  }
6572
6568
  declare module "libs/reach/ui/common/src/reach-2/index" {
6573
6569
  export * from "libs/reach/ui/common/src/reach-2/DateTimeDisplay";
6574
- export * from "libs/reach/ui/common/src/reach-2/Icon";
6575
6570
  export * from "libs/reach/ui/common/src/reach-2/SearchBox";
6576
6571
  export * from "libs/reach/ui/common/src/reach-2/assets/index";
6577
6572
  export * from "libs/reach/ui/common/src/reach-2/avatar/index";
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.980",
7
+ "version": "0.5.0-preview.981",
8
8
  "dependencies": {}
9
9
  }