dfh-ui-library 1.2.48 → 1.2.49

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.
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  import { TooltipProps } from "../../shared/models/components/base.model";
3
3
  /**
4
- * Primary UI component for user interaction
4
+ * Primary UI component for Tooltip
5
5
  */
6
6
  declare const Tooltip: React.FC<TooltipProps>;
7
7
  export default Tooltip;
@@ -1,5 +1,5 @@
1
1
  import { InputHTMLAttributes, SelectHTMLAttributes, TextareaHTMLAttributes } from "react";
2
- import { IAdditionalClassesProp, IChildrenProp, IIconTypeProp, AlignmentType, IOnClickEventProps, TyphoTypes, TyphoComponents, IconHoverColorTypes, MessageTypes, InputType, IconType, LableTypes } from "./common.model";
2
+ import { IAdditionalClassesProp, IChildrenProp, IIconTypeProp, AlignmentType, IOnClickEventProps, TyphoTypes, TyphoComponents, IconHoverColorTypes, MessageTypes, InputType, IconType, LableTypes, ToolTipProps } from "./common.model";
3
3
  export type VariantTypes = "large" | "small" | "extraSmall" | "largeOutlined" | "smallOutlined" | "extraSmallOutlined" | "default" | "defaultOutlined" | "primaryBlue" | "primaryWhite" | "primaryWhiteSelected" | "primaryWhiteNoBoader" | undefined;
4
4
  export interface IButtonProps extends IChildrenProp, IAdditionalClassesProp, IIconTypeProp, IOnClickEventProps {
5
5
  /**
@@ -143,6 +143,8 @@ export interface IHookFormsInputProps extends InputHTMLAttributes<HTMLInputEleme
143
143
  iconClassRight?: string;
144
144
  iconClassLeft?: string;
145
145
  iconOnClick?: (event: React.ChangeEvent<HTMLInputElement>) => void;
146
+ enableToolTip?: boolean;
147
+ tooltipProps?: ToolTipProps;
146
148
  }
147
149
  export interface ICheckboxProps {
148
150
  onChange?: (checked: boolean) => void;
@@ -186,7 +186,7 @@ export interface DialogBoxProps {
186
186
  export interface CustomFileInputProps {
187
187
  onFileChange: (file: File | null) => void;
188
188
  }
189
- interface ToolTipProps {
189
+ export interface ToolTipProps {
190
190
  tooltipIcon?: string;
191
191
  tooltipIconClasses?: string | undefined;
192
192
  tooltipHeading?: string;
@@ -232,4 +232,3 @@ export interface ButtonGroupProps {
232
232
  onSelect: (selectedOption: string) => void;
233
233
  label?: string;
234
234
  }
235
- export {};
package/dist/index.d.ts CHANGED
@@ -313,6 +313,8 @@ interface IHookFormsInputProps extends InputHTMLAttributes<HTMLInputElement> {
313
313
  iconClassRight?: string;
314
314
  iconClassLeft?: string;
315
315
  iconOnClick?: (event: React.ChangeEvent<HTMLInputElement>) => void;
316
+ enableToolTip?: boolean;
317
+ tooltipProps?: ToolTipProps;
316
318
  }
317
319
  interface ICheckboxProps {
318
320
  onChange?: (checked: boolean) => void;
@@ -607,7 +609,7 @@ declare const Row: React$1.FC<RowProps>;
607
609
  declare const PhoneNumberInput: React$1.FC<PhoneNumberInputProps>;
608
610
 
609
611
  /**
610
- * Primary UI component for user interaction
612
+ * Primary UI component for Tooltip
611
613
  */
612
614
  declare const Tooltip: React$1.FC<TooltipProps>;
613
615
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dfh-ui-library",
3
- "version": "1.2.48",
3
+ "version": "1.2.49",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "rollup": "rollup -c --bundleConfigAsCjs --environment NODE_ENV:production",