dfh-ui-library 1.10.13 → 1.10.15
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,4 +1,4 @@
|
|
|
1
|
-
import { InputHTMLAttributes, SelectHTMLAttributes, TextareaHTMLAttributes } from "react";
|
|
1
|
+
import React, { InputHTMLAttributes, SelectHTMLAttributes, TextareaHTMLAttributes } from "react";
|
|
2
2
|
import { IAdditionalClassesProp, IChildrenProp, IIconTypeProp, AlignmentType, IOnClickEventProps, TyphoTypes, TyphoComponents, IconHoverColorTypes, MessageTypes, InputType, IconType, LableTypes, ToolTipProps, selectedValue } from "./common.model";
|
|
3
3
|
export type VariantTypes = "large" | "small" | "extraSmall" | "largeOutlined" | "smallOutlined" | "extraSmallOutlined" | "default" | "defaultOutlined" | "primaryBlue" | "primaryWhite" | "primaryWhiteSelected" | "primaryWhiteNoBoader" | "primaryWhiteIcon" | "primaryRed" | "primaryFilterSelected" | "primaryBlueFilter" | "smallWhite" | "smallWhiteSelected" | "smallBlue" | "primaryNoBoader" | undefined;
|
|
4
4
|
export interface IButtonProps extends IChildrenProp, IAdditionalClassesProp, IIconTypeProp, IOnClickEventProps {
|
|
@@ -603,7 +603,7 @@ export interface IPanelCardProps extends AdditionalClassesProp {
|
|
|
603
603
|
/** Controllers displayed on header area of the card. */
|
|
604
604
|
controllers?: React.ReactNode;
|
|
605
605
|
/** Content displayed within the panel. */
|
|
606
|
-
content?:
|
|
606
|
+
content?: any;
|
|
607
607
|
/** Classes for the panel content. */
|
|
608
608
|
contentClasses?: string | undefined;
|
|
609
609
|
completedDateTime?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { InputHTMLAttributes, SelectHTMLAttributes, TextareaHTMLAttributes } from "react";
|
|
1
|
+
import React, { InputHTMLAttributes, SelectHTMLAttributes, TextareaHTMLAttributes } from "react";
|
|
2
2
|
import { IAdditionalClassesProp, IChildrenProp, IIconTypeProp, AlignmentType, IOnClickEventProps, TyphoTypes, TyphoComponents, IconHoverColorTypes, MessageTypes, InputType, IconType, LableTypes, ToolTipProps, selectedValue } from "./common.model";
|
|
3
3
|
export type VariantTypes = "large" | "small" | "extraSmall" | "largeOutlined" | "smallOutlined" | "extraSmallOutlined" | "default" | "defaultOutlined" | "primaryBlue" | "primaryWhite" | "primaryWhiteSelected" | "primaryWhiteNoBoader" | "primaryWhiteIcon" | "primaryRed" | "primaryFilterSelected" | "primaryBlueFilter" | "smallWhite" | "smallWhiteSelected" | "smallBlue" | "primaryNoBoader" | undefined;
|
|
4
4
|
export interface IButtonProps extends IChildrenProp, IAdditionalClassesProp, IIconTypeProp, IOnClickEventProps {
|
|
@@ -603,7 +603,7 @@ export interface IPanelCardProps extends AdditionalClassesProp {
|
|
|
603
603
|
/** Controllers displayed on header area of the card. */
|
|
604
604
|
controllers?: React.ReactNode;
|
|
605
605
|
/** Content displayed within the panel. */
|
|
606
|
-
content?:
|
|
606
|
+
content?: any;
|
|
607
607
|
/** Classes for the panel content. */
|
|
608
608
|
contentClasses?: string | undefined;
|
|
609
609
|
completedDateTime?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -628,7 +628,7 @@ interface IHookFormsInputProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
|
628
628
|
* LabelClasses
|
|
629
629
|
*/
|
|
630
630
|
labelClasses?: string | undefined;
|
|
631
|
-
onChange?: (e:
|
|
631
|
+
onChange?: (e: React__default.ChangeEvent<HTMLInputElement>) => void;
|
|
632
632
|
placeholder?: string;
|
|
633
633
|
/**
|
|
634
634
|
* Set label only
|
|
@@ -653,7 +653,7 @@ interface IHookFormsInputProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
|
653
653
|
icon?: string;
|
|
654
654
|
iconClassRight?: string;
|
|
655
655
|
iconClassLeft?: string;
|
|
656
|
-
iconOnClick?: (event:
|
|
656
|
+
iconOnClick?: (event: React__default.ChangeEvent<HTMLInputElement>) => void;
|
|
657
657
|
enableToolTip?: boolean;
|
|
658
658
|
tooltipProps?: ToolTipProps;
|
|
659
659
|
suffixed?: string;
|
|
@@ -668,7 +668,7 @@ interface ICheckboxProps extends AdditionalClassesProp {
|
|
|
668
668
|
onChange?: (checked: boolean) => void;
|
|
669
669
|
checked?: boolean;
|
|
670
670
|
id?: any;
|
|
671
|
-
label?: string |
|
|
671
|
+
label?: string | React__default.ReactNode;
|
|
672
672
|
}
|
|
673
673
|
type LABELTYPE = "default" | "black" | "smallSelect" | "blackSmall" | "formLabel" | "formLabelMedeum" | "formButtonGroup" | "fontSemiBold" | undefined;
|
|
674
674
|
interface ILabelProps {
|
|
@@ -687,7 +687,7 @@ interface ILabelProps {
|
|
|
687
687
|
/**
|
|
688
688
|
* Add children
|
|
689
689
|
*/
|
|
690
|
-
children?:
|
|
690
|
+
children?: React__default.ReactNode;
|
|
691
691
|
/**
|
|
692
692
|
* Optional for additional classes
|
|
693
693
|
*/
|
|
@@ -712,7 +712,7 @@ interface IRadioProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
|
712
712
|
*/
|
|
713
713
|
additionalClasses?: string | undefined;
|
|
714
714
|
id?: any;
|
|
715
|
-
onChange?: (e:
|
|
715
|
+
onChange?: (e: React__default.ChangeEvent<HTMLInputElement>) => void;
|
|
716
716
|
isDeafult?: boolean;
|
|
717
717
|
}
|
|
718
718
|
interface IOption {
|
|
@@ -761,7 +761,7 @@ interface ISelectProps extends SelectHTMLAttributes<HTMLSelectElement> {
|
|
|
761
761
|
* Optional for additional classes
|
|
762
762
|
*/
|
|
763
763
|
additionalClasses?: string | undefined;
|
|
764
|
-
updateInputValue?: (e:
|
|
764
|
+
updateInputValue?: (e: React__default.ChangeEvent<HTMLSelectElement>) => void;
|
|
765
765
|
defaultValue?: string;
|
|
766
766
|
iconClasses?: string;
|
|
767
767
|
isIcon?: boolean;
|
|
@@ -826,7 +826,7 @@ interface ICardProps {
|
|
|
826
826
|
/**
|
|
827
827
|
* Nested child elements and contents
|
|
828
828
|
*/
|
|
829
|
-
children?:
|
|
829
|
+
children?: React__default.ReactNode;
|
|
830
830
|
}
|
|
831
831
|
interface AdditionalClassesProp {
|
|
832
832
|
/**
|
|
@@ -859,7 +859,7 @@ interface TooltipProps {
|
|
|
859
859
|
/**
|
|
860
860
|
* Tooltip text
|
|
861
861
|
*/
|
|
862
|
-
tooltipContent?:
|
|
862
|
+
tooltipContent?: React__default.ReactNode;
|
|
863
863
|
/**
|
|
864
864
|
* Tooltip Sub Content
|
|
865
865
|
*/
|
|
@@ -876,9 +876,9 @@ interface TooltipProps {
|
|
|
876
876
|
* Set Tooltip content classes
|
|
877
877
|
*/
|
|
878
878
|
tooltipContentHighlighted?: boolean;
|
|
879
|
-
tooltipClick?: (e:
|
|
880
|
-
onMouseOver?: (e:
|
|
881
|
-
onMouseOut?: (e:
|
|
879
|
+
tooltipClick?: (e: React__default.ChangeEvent<HTMLSelectElement>) => void;
|
|
880
|
+
onMouseOver?: (e: React__default.ChangeEvent<HTMLSelectElement>) => void;
|
|
881
|
+
onMouseOut?: (e: React__default.ChangeEvent<HTMLSelectElement>) => void;
|
|
882
882
|
showTooltip?: boolean;
|
|
883
883
|
fromBottom?: boolean;
|
|
884
884
|
}
|
|
@@ -894,7 +894,7 @@ interface ITabProps extends AdditionalClassesProp {
|
|
|
894
894
|
}
|
|
895
895
|
interface ITabListProps extends AdditionalClassesProp {
|
|
896
896
|
/** Children components, typically Tab components. */
|
|
897
|
-
children:
|
|
897
|
+
children: React__default.ReactNode;
|
|
898
898
|
/** Value of the active tab. */
|
|
899
899
|
value: string;
|
|
900
900
|
/** Callback on tab click. */
|
|
@@ -902,7 +902,7 @@ interface ITabListProps extends AdditionalClassesProp {
|
|
|
902
902
|
}
|
|
903
903
|
interface ITabPanelProps extends AdditionalClassesProp {
|
|
904
904
|
/** Content displayed within the panel. */
|
|
905
|
-
children:
|
|
905
|
+
children: React__default.ReactNode;
|
|
906
906
|
/** Value of the active tab for display logic. */
|
|
907
907
|
value: string;
|
|
908
908
|
/** Identifier for the tab panel. */
|
|
@@ -913,9 +913,9 @@ interface IPanelCardProps extends AdditionalClassesProp {
|
|
|
913
913
|
/** Header title displayed on header area of the card. */
|
|
914
914
|
headerTitle: string;
|
|
915
915
|
/** Controllers displayed on header area of the card. */
|
|
916
|
-
controllers?:
|
|
916
|
+
controllers?: React__default.ReactNode;
|
|
917
917
|
/** Content displayed within the panel. */
|
|
918
|
-
content?:
|
|
918
|
+
content?: any;
|
|
919
919
|
/** Classes for the panel content. */
|
|
920
920
|
contentClasses?: string | undefined;
|
|
921
921
|
completedDateTime?: string;
|
|
@@ -938,16 +938,16 @@ declare enum BorderType {
|
|
|
938
938
|
}
|
|
939
939
|
interface IListRowProps extends AdditionalClassesProp {
|
|
940
940
|
/** Header title displayed on list row. */
|
|
941
|
-
title: string |
|
|
941
|
+
title: string | React__default.ReactNode;
|
|
942
942
|
/** Sub title displayed on list row. */
|
|
943
|
-
subTitle?: string |
|
|
943
|
+
subTitle?: string | React__default.ReactNode;
|
|
944
944
|
/** labels on list row. */
|
|
945
945
|
labels?: string[];
|
|
946
946
|
/** Controllers displayed on right side of list row. */
|
|
947
|
-
controllers:
|
|
947
|
+
controllers: React__default.ReactNode | any;
|
|
948
948
|
/** List Row button border type */
|
|
949
949
|
bottomBorderType?: BorderType;
|
|
950
|
-
bottomContent?:
|
|
950
|
+
bottomContent?: React__default.ReactNode;
|
|
951
951
|
onFocus?: () => void;
|
|
952
952
|
}
|
|
953
953
|
|