Skip to content

Commit

Permalink
feat: added description on hover.
Browse files Browse the repository at this point in the history
  • Loading branch information
Pritish Budhiraja committed Dec 15, 2023
1 parent f630f8c commit 28d32c1
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 22 deletions.
2 changes: 2 additions & 0 deletions src/components/InputFields.res
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ let selectInput = (
~ellipsisOnly=false,
~showBtnTextToolTip=false,
~dropdownClassName="",
~descriptionOnHover=false,
(),
) => {
let accessHook = useGetAccessLevel()
Expand Down Expand Up @@ -252,6 +253,7 @@ let selectInput = (
ellipsisOnly
showBtnTextToolTip
dropdownClassName
descriptionOnHover
/>
}

Expand Down
39 changes: 17 additions & 22 deletions src/components/InputFields.resi
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ let selectInput: (
~customButtonStyle: Js.String2.t=?,
~textStyle: string=?,
~marginTop: string=?,
~customStyle: string=?,
~customStyle: Js.String2.t=?,
~searchable: bool=?,
~showBorder: bool=?,
~showToolTipOptions: bool=?,
Expand All @@ -43,16 +43,16 @@ let selectInput: (
~fixedDropDownDirection: SelectBox.direction=?,
~customButton: React.element=?,
~buttonType: Button.buttonType=?,
~dropdownCustomWidth: string=?,
~dropdownCustomWidth: Js.String2.t=?,
~allowButtonTextMinWidth: bool=?,
~setExtSearchString: (string => string) => unit=?,
~textStyleClass: string=?,
~setExtSearchString: ('b => string) => unit=?,
~textStyleClass: Js.String2.t=?,
~ellipsisOnly: bool=?,
~showBtnTextToolTip: bool=?,
~dropdownClassName: string=?,
~descriptionOnHover: bool=?,
unit,
) => React.element

let asyncSelectInput: (
~input: ReactFinalForm.fieldRenderPropsInput,
~url: Js.String2.t=?,
Expand Down Expand Up @@ -123,7 +123,7 @@ let multiSelectInput: (
~searchable: bool=?,
~showBorder: bool=?,
~optionRigthElement: React.element=?,
~customStyle: string=?,
~customStyle: Js.String2.t=?,
~customMargin: string=?,
~customButtonStyle: Js.String2.t=?,
~hideBorder: bool=?,
Expand All @@ -135,7 +135,7 @@ let multiSelectInput: (
~isHorizontal: bool=?,
~fullLength: bool=?,
~fixedDropDownDirection: SelectBox.direction=?,
~dropdownCustomWidth: string=?,
~dropdownCustomWidth: Js.String2.t=?,
~customMarginStyle: string=?,
~buttonTextWeight: string=?,
~marginTop: string=?,
Expand All @@ -154,13 +154,12 @@ let multiSelectInput: (
~leftIcon: Button.iconType=?,
~customBackColor: string=?,
~customSelectAllStyle: string=?,
~onItemSelect: (ReactEvent.Mouse.t, string) => unit=?,
~onItemSelect: (JsxEvent.Mouse.t, Js_string.t) => unit=?,
~wrapBasis: string=?,
~dropdownClassName: string=?,
~baseComponentMethod: bool => React.element=?,
unit,
) => React.element

let btnGroupInput: (
~input: ReactFinalForm.fieldRenderPropsInput,
~options: array<SelectBox.dropdownOption>,
Expand All @@ -180,11 +179,11 @@ let radioInput: (
~optionSize: CheckBoxIcon.size=?,
~isHorizontal: bool=?,
~deselectDisable: bool=?,
~customStyle: string=?,
~customStyle: Js.String2.t=?,
~baseComponentCustomStyle: string=?,
~customSelectStyle: string=?,
~fill: string=?,
~maxHeight: string=?,
~maxHeight: Js.String2.t=?,
unit,
) => React.element
let checkboxInput: (
Expand All @@ -196,14 +195,14 @@ let checkboxInput: (
~disableSelect: bool=?,
~buttonText: Js.String2.t=?,
~placeholder: 'a,
~maxHeight: string=?,
~maxHeight: Js.String2.t=?,
~searchable: bool=?,
~searchInputPlaceHolder: string=?,
~dropdownCustomWidth: string=?,
~dropdownCustomWidth: Js.String2.t=?,
~customSearchStyle: string=?,
~customLabelStyle: string=?,
~customMarginStyle: string=?,
~customStyle: string=?,
~customStyle: Js.String2.t=?,
~checkboxDimension: string=?,
~wrapBasis: string=?,
unit,
Expand Down Expand Up @@ -320,7 +319,6 @@ let multipleFileInput: (
~pointerDisable: bool=?,
unit,
) => React.element

let csvFileUploadInput: (
~input: ReactFinalForm.fieldRenderPropsInput,
~placeholder: 'a,
Expand All @@ -329,7 +327,6 @@ let csvFileUploadInput: (
~messageId: string,
unit,
) => React.element

let imageInput: (
~input: ReactFinalForm.fieldRenderPropsInput,
~placeholder: 'a,
Expand Down Expand Up @@ -394,7 +391,6 @@ let datePickerInput: (
~format: string=?,
unit,
) => React.element

let singleDatePickerInput: (
~input: ReactFinalForm.fieldRenderPropsInput,
~placeholder: 'a,
Expand All @@ -406,7 +402,7 @@ let singleDatePickerInput: (
~currentDateMinuteFormat: Js.String2.t=?,
~currentDateSecondsFormat: Js.String2.t=?,
~customButtonStyle: Js.String2.t=?,
~newThemeCustomButtonStyle: Js.String2.t=?,
~newThemeCustomButtonStyle: string=?,
~calendarContaierStyle: string=?,
~buttonSize: Button.buttonSize=?,
~showTime: bool=?,
Expand Down Expand Up @@ -559,7 +555,6 @@ let multiLineTextInput: (
~maxLength: int=?,
unit,
) => React.element

let fieldWithMessage: (
(~input: ReactFinalForm.fieldRenderPropsInput, ~placeholder: 'a) => React.element,
~input: ReactFinalForm.fieldRenderPropsInput,
Expand All @@ -581,19 +576,19 @@ let passwordCreateField: (
~leftIcon: React.element=?,
unit,
) => React.element
let passwordFieldWithCheckChips: (
let passwordFieldWithCheckWindow: (
~input: ReactFinalForm.fieldRenderPropsInput,
~placeholder: string,
~leftIcon: React.element=?,
~autoComplete: string=?,
~customStyle: string=?,
~customPaddingClass: string=?,
~customTextStyle: string=?,
~specialCharatersInfoText: Js.String2.t=?,
~specialCharatersInfoText: string=?,
~customDashboardClass: string=?,
unit,
) => React.element
let passwordFieldWithCheckWindow: (
let passwordFieldWithCheckChips: (
~input: ReactFinalForm.fieldRenderPropsInput,
~placeholder: string,
~leftIcon: React.element=?,
Expand Down
2 changes: 2 additions & 0 deletions src/components/SelectBox.res
Original file line number Diff line number Diff line change
Expand Up @@ -2587,6 +2587,8 @@ let make = (
?maxHeight
?searchInputPlaceHolder
showSearchIcon
descriptionOnHover
showToolTipOptions
/>
}
}

0 comments on commit 28d32c1

Please sign in to comment.