@agility/plenum-ui 2.0.0-rc15 → 2.0.0-rc17

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/dist/index.d.ts CHANGED
@@ -86,7 +86,7 @@ declare module '@agility/plenum-ui/stories/atoms/buttons/Button/Button' {
86
86
  import React, { HTMLAttributeAnchorTarget } from "react";
87
87
  import { UnifiedIconName, IDynamicIconProps } from "@agility/plenum-ui/stories/atoms/icons/index";
88
88
  export type BTNActionType = "primary" | "secondary" | "alternative" | "danger";
89
- export interface IButtonProps extends React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement> {
89
+ export interface IButtonProps extends Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> {
90
90
  /** Is the button a Primary CTA, alternative or danger button? */
91
91
  actionType?: BTNActionType;
92
92
  /** How lg should the button be? - Defaults to 'base'. */
@@ -111,12 +111,8 @@ declare module '@agility/plenum-ui/stories/atoms/buttons/Button/Button' {
111
111
  isLoading?: boolean;
112
112
  className?: string;
113
113
  iconObj?: React.ReactNode;
114
- ref?: React.LegacyRef<HTMLButtonElement>;
115
114
  }
116
- /**
117
- * Primary UI component for user interaction
118
- */
119
- const Button: ({ actionType, size, label, icon, iconObj, CustomSVGIcon, fullWidth, iconPosition, asLink, isLoading, className, ref, ...props }: IButtonProps) => import("react/jsx-runtime").JSX.Element;
115
+ const Button: React.ForwardRefExoticComponent<IButtonProps & React.RefAttributes<HTMLButtonElement>>;
120
116
  export default Button;
121
117
 
122
118
  }
@@ -553,7 +549,7 @@ declare module '@agility/plenum-ui/stories/molecules/inputs/TextInput/TextInput'
553
549
  /** Max length of input character */
554
550
  maxLength?: number;
555
551
  /** Callback on change */
556
- onChange(value: string): void;
552
+ handleChange(value: string): void;
557
553
  /** input value */
558
554
  value: string;
559
555
  /**Placeholder input text*/