dfh-ui-library 1.13.17 → 1.13.19
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/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/ComponentProvider/ComponentHelper.d.ts +1 -1
- package/dist/cjs/types/components/Datepicker/DatePickerFormGen.d.ts +3 -3
- package/dist/cjs/types/components/FormElements/Textarea/TextareaWithCountV2.d.ts +7 -0
- package/dist/cjs/types/components/FormElements/Textarea/index.d.ts +3 -2
- package/dist/cjs/types/components/FormElements/index.d.ts +9 -9
- package/dist/cjs/types/shared/models/components/base.model.d.ts +68 -15
- package/dist/cjs/types/shared/utilities/date.d.ts +4 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/ComponentProvider/ComponentHelper.d.ts +1 -1
- package/dist/esm/types/components/Datepicker/DatePickerFormGen.d.ts +3 -3
- package/dist/esm/types/components/FormElements/Textarea/TextareaWithCountV2.d.ts +7 -0
- package/dist/esm/types/components/FormElements/Textarea/index.d.ts +3 -2
- package/dist/esm/types/components/FormElements/index.d.ts +9 -9
- package/dist/esm/types/shared/models/components/base.model.d.ts +68 -15
- package/dist/esm/types/shared/utilities/date.d.ts +4 -0
- package/dist/index.d.ts +10 -10
- package/package.json +1 -1
@@ -1,2 +1,2 @@
|
|
1
|
-
import { IDefaultComponent } from
|
1
|
+
import { IDefaultComponent } from '../../shared/models/components/common.model';
|
2
2
|
export declare const LibraryComponents: IDefaultComponent[];
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import React from
|
2
|
-
import
|
3
|
-
import { CustomDatePickerProps } from
|
1
|
+
import React from 'react';
|
2
|
+
import '../../shared/customCss/react-datepicker.css';
|
3
|
+
import { CustomDatePickerProps } from '../../shared/models/components/common.model';
|
4
4
|
declare const DatePickerFormGen: React.FC<CustomDatePickerProps>;
|
5
5
|
export default DatePickerFormGen;
|
@@ -1,2 +1,3 @@
|
|
1
|
-
export { default as Textarea } from
|
2
|
-
export { default as TextareaWithCount } from
|
1
|
+
export { default as Textarea } from './Textarea';
|
2
|
+
export { default as TextareaWithCount } from './TextareaWithCount';
|
3
|
+
export { default as TextareaWithCountV2 } from './TextareaWithCountV2';
|
@@ -1,9 +1,9 @@
|
|
1
|
-
export { default as CheckBox } from
|
2
|
-
export { default as InputValidation } from
|
3
|
-
export { default as Input } from
|
4
|
-
export { default as Label } from
|
5
|
-
export { default as Select } from
|
6
|
-
export { default as RadioButton } from
|
7
|
-
export { Textarea, TextareaWithCount } from
|
8
|
-
export { default as IconInput } from
|
9
|
-
export { default as ImageInput } from
|
1
|
+
export { default as CheckBox } from './CheckBox';
|
2
|
+
export { default as InputValidation } from './InputValidation';
|
3
|
+
export { default as Input } from './Input';
|
4
|
+
export { default as Label } from './Label';
|
5
|
+
export { default as Select } from './Select';
|
6
|
+
export { default as RadioButton } from './RadioButton';
|
7
|
+
export { Textarea, TextareaWithCount, TextareaWithCountV2 } from './Textarea';
|
8
|
+
export { default as IconInput } from './IconInput';
|
9
|
+
export { default as ImageInput } from './ImageInput';
|
@@ -1,11 +1,11 @@
|
|
1
|
-
import React, { InputHTMLAttributes, ReactNode, SelectHTMLAttributes, TextareaHTMLAttributes } from
|
2
|
-
import { IAdditionalClassesProp, IChildrenProp, IIconTypeProp, AlignmentType, IOnClickEventProps, TyphoTypes, TyphoComponents, IconHoverColorTypes, MessageTypes, InputType, IconType, LableTypes, ToolTipProps, selectedValue } from
|
3
|
-
export type VariantTypes =
|
1
|
+
import React, { InputHTMLAttributes, ReactNode, SelectHTMLAttributes, TextareaHTMLAttributes } from 'react';
|
2
|
+
import { IAdditionalClassesProp, IChildrenProp, IIconTypeProp, AlignmentType, IOnClickEventProps, TyphoTypes, TyphoComponents, IconHoverColorTypes, MessageTypes, InputType, IconType, LableTypes, ToolTipProps, selectedValue } from './common.model';
|
3
|
+
export type VariantTypes = 'large' | 'small' | 'extraSmall' | 'largeOutlined' | 'smallOutlined' | 'extraSmallOutlined' | 'default' | 'defaultOutlined' | 'primaryBlue' | 'primaryWhite' | 'primaryWhiteSelected' | 'primaryWhiteNoBoader' | 'primaryWhiteIcon' | 'primaryRed' | 'primaryFilterSelected' | 'primaryBlueFilter' | 'smallWhite' | 'smallWhiteSelected' | 'smallBlue' | 'primaryNoBoader' | 'primaryBlue10' | 'noBoaderbgTransparent' | undefined;
|
4
4
|
export interface IButtonProps extends IChildrenProp, IAdditionalClassesProp, IIconTypeProp, IOnClickEventProps {
|
5
5
|
/**
|
6
6
|
* Set the button type
|
7
7
|
*/
|
8
|
-
type?:
|
8
|
+
type?: 'submit' | 'button';
|
9
9
|
/**
|
10
10
|
* Button Variants
|
11
11
|
*/
|
@@ -56,8 +56,8 @@ export interface ITyphographyProps extends IChildrenProp, IAdditionalClassesProp
|
|
56
56
|
disabled?: boolean;
|
57
57
|
}
|
58
58
|
export interface ITyphographyFormGenProps extends IChildrenProp, IAdditionalClassesProp {
|
59
|
-
type?:
|
60
|
-
componentType?:
|
59
|
+
type?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
60
|
+
componentType?: 'p' | undefined;
|
61
61
|
color?: string;
|
62
62
|
onClick?: () => void;
|
63
63
|
disabled?: boolean;
|
@@ -97,7 +97,7 @@ export interface IHookFormsInputProps extends InputHTMLAttributes<HTMLInputEleme
|
|
97
97
|
/**
|
98
98
|
* Set new variant of the input
|
99
99
|
*/
|
100
|
-
inputVariant?:
|
100
|
+
inputVariant?: 'default' | 'large' | 'dynamic' | 'uploadinput' | 'small' | 'noborder';
|
101
101
|
/**
|
102
102
|
* Set Input name
|
103
103
|
*/
|
@@ -185,7 +185,7 @@ export interface IFormGenInputProps {
|
|
185
185
|
/**
|
186
186
|
* Set new variant of the input
|
187
187
|
*/
|
188
|
-
inputVariant?:
|
188
|
+
inputVariant?: 'default' | 'large' | 'dynamic';
|
189
189
|
/**
|
190
190
|
* Set Input name
|
191
191
|
*/
|
@@ -271,7 +271,7 @@ export interface IFormGenInputProps {
|
|
271
271
|
/**
|
272
272
|
* Set new variant of the input
|
273
273
|
*/
|
274
|
-
inputVariant?:
|
274
|
+
inputVariant?: 'default' | 'large' | 'dynamic';
|
275
275
|
/**
|
276
276
|
* Set Input name
|
277
277
|
*/
|
@@ -360,7 +360,7 @@ export interface ICheckboxFormGenProps extends AdditionalClassesProp {
|
|
360
360
|
id?: any;
|
361
361
|
label?: string | React.ReactNode;
|
362
362
|
}
|
363
|
-
export type LABELTYPE =
|
363
|
+
export type LABELTYPE = 'default' | 'black' | 'smallSelect' | 'blackSmall' | 'formLabel' | 'formLabelMedeum' | 'formButtonGroup' | 'fontSemiBold' | undefined;
|
364
364
|
export interface ILabelProps {
|
365
365
|
/**
|
366
366
|
* Set the Label Type
|
@@ -410,7 +410,7 @@ interface IOption {
|
|
410
410
|
value: string;
|
411
411
|
displayName: string;
|
412
412
|
}
|
413
|
-
export type selectType =
|
413
|
+
export type selectType = 'small' | 'medium' | 'regular';
|
414
414
|
export interface ISelectProps extends SelectHTMLAttributes<HTMLSelectElement> {
|
415
415
|
/**
|
416
416
|
* Type
|
@@ -427,7 +427,7 @@ export interface ISelectProps extends SelectHTMLAttributes<HTMLSelectElement> {
|
|
427
427
|
/**
|
428
428
|
* Set Label type
|
429
429
|
*/
|
430
|
-
labelType?:
|
430
|
+
labelType?: 'default' | 'black' | 'smallSelect' | 'blackSmall' | 'formLabelMedeum';
|
431
431
|
/**
|
432
432
|
* Set Input label name
|
433
433
|
*/
|
@@ -485,7 +485,7 @@ export interface IInputProps extends TextareaHTMLAttributes<HTMLTextAreaElement>
|
|
485
485
|
/**
|
486
486
|
* Set the Label Type
|
487
487
|
*/
|
488
|
-
labelType?:
|
488
|
+
labelType?: 'default' | 'black' | 'smallSelect';
|
489
489
|
/**
|
490
490
|
* Set Input label name
|
491
491
|
*/
|
@@ -525,11 +525,64 @@ export interface IInputProps extends TextareaHTMLAttributes<HTMLTextAreaElement>
|
|
525
525
|
setValue?: (value: string) => void;
|
526
526
|
isRequired?: boolean;
|
527
527
|
}
|
528
|
+
export interface IInputPropsV2 extends Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'onChange'> {
|
529
|
+
/**
|
530
|
+
* Set Input type
|
531
|
+
*/
|
532
|
+
type?: InputType;
|
533
|
+
/**
|
534
|
+
* Set Input name
|
535
|
+
*/
|
536
|
+
name: string;
|
537
|
+
/**
|
538
|
+
* Set the Label Type
|
539
|
+
*/
|
540
|
+
labelType?: 'default' | 'black' | 'smallSelect';
|
541
|
+
/**
|
542
|
+
* Set Input label name
|
543
|
+
*/
|
544
|
+
label?: string | undefined;
|
545
|
+
/**
|
546
|
+
* Ser Error message
|
547
|
+
*/
|
548
|
+
error?: string;
|
549
|
+
/**
|
550
|
+
* Set Wrapper classes, new classes will overide the existing default classes
|
551
|
+
*/
|
552
|
+
wrapperClass?: string | undefined;
|
553
|
+
/**
|
554
|
+
* Optional for additional classes
|
555
|
+
*/
|
556
|
+
additionalClasses?: string | undefined;
|
557
|
+
/**
|
558
|
+
* Enable read only
|
559
|
+
*/
|
560
|
+
readonly?: boolean;
|
561
|
+
/**
|
562
|
+
* LabelClasses
|
563
|
+
*/
|
564
|
+
labelClasses?: string;
|
565
|
+
/**
|
566
|
+
* Set label only
|
567
|
+
*/
|
568
|
+
onlyLabel?: boolean;
|
569
|
+
row?: number;
|
570
|
+
inputFocus?: any;
|
571
|
+
refProps?: any;
|
572
|
+
reSize?: string;
|
573
|
+
textClass?: string;
|
574
|
+
maxLength?: number;
|
575
|
+
isEnableTextCount?: boolean;
|
576
|
+
value?: string | undefined;
|
577
|
+
setValue?: (value: string) => void;
|
578
|
+
isRequired?: boolean;
|
579
|
+
onChange?: (value: string) => void;
|
580
|
+
}
|
528
581
|
export interface ICardProps {
|
529
582
|
/**
|
530
583
|
* Set button type
|
531
584
|
*/
|
532
|
-
cardType?:
|
585
|
+
cardType?: 'lightGray' | 'lightGrayHalf' | 'gray' | 'white' | 'black' | 'whiteBorder' | 'bgLightBlue';
|
533
586
|
/**
|
534
587
|
* Optional for additional classes
|
535
588
|
*/
|
@@ -601,7 +654,7 @@ export type Patient = {
|
|
601
654
|
age: number;
|
602
655
|
visits: number;
|
603
656
|
progress: number;
|
604
|
-
status:
|
657
|
+
status: 'relationship' | 'complicated' | 'single';
|
605
658
|
subRows?: Patient[];
|
606
659
|
};
|
607
660
|
export interface ITabProps extends AdditionalClassesProp {
|
package/dist/index.d.ts
CHANGED
@@ -834,12 +834,12 @@ interface TableProps {
|
|
834
834
|
isLoading?: boolean;
|
835
835
|
}
|
836
836
|
|
837
|
-
type VariantTypes =
|
837
|
+
type VariantTypes = 'large' | 'small' | 'extraSmall' | 'largeOutlined' | 'smallOutlined' | 'extraSmallOutlined' | 'default' | 'defaultOutlined' | 'primaryBlue' | 'primaryWhite' | 'primaryWhiteSelected' | 'primaryWhiteNoBoader' | 'primaryWhiteIcon' | 'primaryRed' | 'primaryFilterSelected' | 'primaryBlueFilter' | 'smallWhite' | 'smallWhiteSelected' | 'smallBlue' | 'primaryNoBoader' | 'primaryBlue10' | 'noBoaderbgTransparent' | undefined;
|
838
838
|
interface IButtonProps extends IChildrenProp, IAdditionalClassesProp, IIconTypeProp, IOnClickEventProps {
|
839
839
|
/**
|
840
840
|
* Set the button type
|
841
841
|
*/
|
842
|
-
type?:
|
842
|
+
type?: 'submit' | 'button';
|
843
843
|
/**
|
844
844
|
* Button Variants
|
845
845
|
*/
|
@@ -890,8 +890,8 @@ interface ITyphographyProps extends IChildrenProp, IAdditionalClassesProp {
|
|
890
890
|
disabled?: boolean;
|
891
891
|
}
|
892
892
|
interface ITyphographyFormGenProps extends IChildrenProp, IAdditionalClassesProp {
|
893
|
-
type?:
|
894
|
-
componentType?:
|
893
|
+
type?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
894
|
+
componentType?: 'p' | undefined;
|
895
895
|
color?: string;
|
896
896
|
onClick?: () => void;
|
897
897
|
disabled?: boolean;
|
@@ -931,7 +931,7 @@ interface IHookFormsInputProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
931
931
|
/**
|
932
932
|
* Set new variant of the input
|
933
933
|
*/
|
934
|
-
inputVariant?:
|
934
|
+
inputVariant?: 'default' | 'large' | 'dynamic' | 'uploadinput' | 'small' | 'noborder';
|
935
935
|
/**
|
936
936
|
* Set Input name
|
937
937
|
*/
|
@@ -1017,7 +1017,7 @@ interface ICheckboxProps extends AdditionalClassesProp {
|
|
1017
1017
|
id?: any;
|
1018
1018
|
label?: string | React__default.ReactNode;
|
1019
1019
|
}
|
1020
|
-
type LABELTYPE =
|
1020
|
+
type LABELTYPE = 'default' | 'black' | 'smallSelect' | 'blackSmall' | 'formLabel' | 'formLabelMedeum' | 'formButtonGroup' | 'fontSemiBold' | undefined;
|
1021
1021
|
interface ILabelProps {
|
1022
1022
|
/**
|
1023
1023
|
* Set the Label Type
|
@@ -1067,7 +1067,7 @@ interface IOption {
|
|
1067
1067
|
value: string;
|
1068
1068
|
displayName: string;
|
1069
1069
|
}
|
1070
|
-
type selectType =
|
1070
|
+
type selectType = 'small' | 'medium' | 'regular';
|
1071
1071
|
interface ISelectProps extends SelectHTMLAttributes<HTMLSelectElement> {
|
1072
1072
|
/**
|
1073
1073
|
* Type
|
@@ -1084,7 +1084,7 @@ interface ISelectProps extends SelectHTMLAttributes<HTMLSelectElement> {
|
|
1084
1084
|
/**
|
1085
1085
|
* Set Label type
|
1086
1086
|
*/
|
1087
|
-
labelType?:
|
1087
|
+
labelType?: 'default' | 'black' | 'smallSelect' | 'blackSmall' | 'formLabelMedeum';
|
1088
1088
|
/**
|
1089
1089
|
* Set Input label name
|
1090
1090
|
*/
|
@@ -1128,7 +1128,7 @@ interface IInputProps extends TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
1128
1128
|
/**
|
1129
1129
|
* Set the Label Type
|
1130
1130
|
*/
|
1131
|
-
labelType?:
|
1131
|
+
labelType?: 'default' | 'black' | 'smallSelect';
|
1132
1132
|
/**
|
1133
1133
|
* Set Input label name
|
1134
1134
|
*/
|
@@ -1172,7 +1172,7 @@ interface ICardProps {
|
|
1172
1172
|
/**
|
1173
1173
|
* Set button type
|
1174
1174
|
*/
|
1175
|
-
cardType?:
|
1175
|
+
cardType?: 'lightGray' | 'lightGrayHalf' | 'gray' | 'white' | 'black' | 'whiteBorder' | 'bgLightBlue';
|
1176
1176
|
/**
|
1177
1177
|
* Optional for additional classes
|
1178
1178
|
*/
|