dfh-ui-library 1.13.16 → 1.13.18
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/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/index.d.ts +1 -0
- package/dist/cjs/types/shared/models/components/base.model.d.ts +68 -15
- package/dist/cjs/types/shared/models/components/common.model.d.ts +2 -0
- package/dist/cjs/types/shared/utilities/helper.d.ts +1 -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/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/index.d.ts +1 -0
- package/dist/esm/types/shared/models/components/base.model.d.ts +68 -15
- package/dist/esm/types/shared/models/components/common.model.d.ts +2 -0
- package/dist/esm/types/shared/utilities/helper.d.ts +1 -0
- package/dist/index.d.ts +15 -11
- package/package.json +2 -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,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';
|
@@ -8,3 +8,4 @@ export { usePagination } from "./hooks/usePagination";
|
|
8
8
|
export { useSorting } from "./hooks/useSorting";
|
9
9
|
export { themeConfigs } from "./shared/configs/themeConfig";
|
10
10
|
export { NoteHistoryProps } from "./shared/models/components/common.model";
|
11
|
+
export { setDateWithoutTimezone } from "./shared/utilities/helper";
|
@@ -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 {
|
@@ -442,6 +442,7 @@ export interface UserDropdownProps {
|
|
442
442
|
disabled?: boolean;
|
443
443
|
edited?: boolean;
|
444
444
|
editedValue?: OptionProps;
|
445
|
+
disableApplyButton?: boolean;
|
445
446
|
}
|
446
447
|
export interface VersionDropDownProps {
|
447
448
|
options?: {
|
@@ -506,6 +507,7 @@ export interface ButtonGroupProps extends InputGroupProps {
|
|
506
507
|
viewMode?: boolean;
|
507
508
|
buttonType?: string;
|
508
509
|
disabled?: boolean;
|
510
|
+
disableApplyButton?: boolean;
|
509
511
|
}
|
510
512
|
export interface ButtonGroupMultiProps extends InputGroupProps {
|
511
513
|
options: {
|
@@ -10,3 +10,4 @@ export declare enum ChallengeActionType {
|
|
10
10
|
export declare const getFristLettersFromString: (inputString: string) => string;
|
11
11
|
export declare const calculateTotalChallenges: (urgentDataList: any) => any;
|
12
12
|
export declare const calculateTotalNotes: (urgentDataList: UrgentDataProps[]) => number;
|
13
|
+
export declare const setDateWithoutTimezone: (date: Date | string | null) => Date | null;
|
package/dist/index.d.ts
CHANGED
@@ -404,6 +404,7 @@ interface UserDropdownProps {
|
|
404
404
|
disabled?: boolean;
|
405
405
|
edited?: boolean;
|
406
406
|
editedValue?: OptionProps;
|
407
|
+
disableApplyButton?: boolean;
|
407
408
|
}
|
408
409
|
interface VersionDropDownProps {
|
409
410
|
options?: {
|
@@ -468,6 +469,7 @@ interface ButtonGroupProps extends InputGroupProps {
|
|
468
469
|
viewMode?: boolean;
|
469
470
|
buttonType?: string;
|
470
471
|
disabled?: boolean;
|
472
|
+
disableApplyButton?: boolean;
|
471
473
|
}
|
472
474
|
interface ButtonGroupMultiProps extends InputGroupProps {
|
473
475
|
options: {
|
@@ -832,12 +834,12 @@ interface TableProps {
|
|
832
834
|
isLoading?: boolean;
|
833
835
|
}
|
834
836
|
|
835
|
-
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;
|
836
838
|
interface IButtonProps extends IChildrenProp, IAdditionalClassesProp, IIconTypeProp, IOnClickEventProps {
|
837
839
|
/**
|
838
840
|
* Set the button type
|
839
841
|
*/
|
840
|
-
type?:
|
842
|
+
type?: 'submit' | 'button';
|
841
843
|
/**
|
842
844
|
* Button Variants
|
843
845
|
*/
|
@@ -888,8 +890,8 @@ interface ITyphographyProps extends IChildrenProp, IAdditionalClassesProp {
|
|
888
890
|
disabled?: boolean;
|
889
891
|
}
|
890
892
|
interface ITyphographyFormGenProps extends IChildrenProp, IAdditionalClassesProp {
|
891
|
-
type?:
|
892
|
-
componentType?:
|
893
|
+
type?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
894
|
+
componentType?: 'p' | undefined;
|
893
895
|
color?: string;
|
894
896
|
onClick?: () => void;
|
895
897
|
disabled?: boolean;
|
@@ -929,7 +931,7 @@ interface IHookFormsInputProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
929
931
|
/**
|
930
932
|
* Set new variant of the input
|
931
933
|
*/
|
932
|
-
inputVariant?:
|
934
|
+
inputVariant?: 'default' | 'large' | 'dynamic' | 'uploadinput' | 'small' | 'noborder';
|
933
935
|
/**
|
934
936
|
* Set Input name
|
935
937
|
*/
|
@@ -1015,7 +1017,7 @@ interface ICheckboxProps extends AdditionalClassesProp {
|
|
1015
1017
|
id?: any;
|
1016
1018
|
label?: string | React__default.ReactNode;
|
1017
1019
|
}
|
1018
|
-
type LABELTYPE =
|
1020
|
+
type LABELTYPE = 'default' | 'black' | 'smallSelect' | 'blackSmall' | 'formLabel' | 'formLabelMedeum' | 'formButtonGroup' | 'fontSemiBold' | undefined;
|
1019
1021
|
interface ILabelProps {
|
1020
1022
|
/**
|
1021
1023
|
* Set the Label Type
|
@@ -1065,7 +1067,7 @@ interface IOption {
|
|
1065
1067
|
value: string;
|
1066
1068
|
displayName: string;
|
1067
1069
|
}
|
1068
|
-
type selectType =
|
1070
|
+
type selectType = 'small' | 'medium' | 'regular';
|
1069
1071
|
interface ISelectProps extends SelectHTMLAttributes<HTMLSelectElement> {
|
1070
1072
|
/**
|
1071
1073
|
* Type
|
@@ -1082,7 +1084,7 @@ interface ISelectProps extends SelectHTMLAttributes<HTMLSelectElement> {
|
|
1082
1084
|
/**
|
1083
1085
|
* Set Label type
|
1084
1086
|
*/
|
1085
|
-
labelType?:
|
1087
|
+
labelType?: 'default' | 'black' | 'smallSelect' | 'blackSmall' | 'formLabelMedeum';
|
1086
1088
|
/**
|
1087
1089
|
* Set Input label name
|
1088
1090
|
*/
|
@@ -1126,7 +1128,7 @@ interface IInputProps extends TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
1126
1128
|
/**
|
1127
1129
|
* Set the Label Type
|
1128
1130
|
*/
|
1129
|
-
labelType?:
|
1131
|
+
labelType?: 'default' | 'black' | 'smallSelect';
|
1130
1132
|
/**
|
1131
1133
|
* Set Input label name
|
1132
1134
|
*/
|
@@ -1170,7 +1172,7 @@ interface ICardProps {
|
|
1170
1172
|
/**
|
1171
1173
|
* Set button type
|
1172
1174
|
*/
|
1173
|
-
cardType?:
|
1175
|
+
cardType?: 'lightGray' | 'lightGrayHalf' | 'gray' | 'white' | 'black' | 'whiteBorder' | 'bgLightBlue';
|
1174
1176
|
/**
|
1175
1177
|
* Optional for additional classes
|
1176
1178
|
*/
|
@@ -1908,4 +1910,6 @@ declare const themeConfigs: {
|
|
1908
1910
|
plugins: any[];
|
1909
1911
|
};
|
1910
1912
|
|
1911
|
-
|
1913
|
+
declare const setDateWithoutTimezone: (date: Date | string | null) => Date | null;
|
1914
|
+
|
1915
|
+
export { type AccountPopoverMenuItem, BADGETYPE, Badge, type BadgeColorVariant, BorderType, Breadcrumb, type BtnOptionDropdown, Button, ButtonGroup, ButtonGroupFormGen, ButtonGroupMultiSelect, ButtonGroupWithInputs, ButtonGroupWithInputsFormGen, ButtonGroupWithUpload, Card, Checkbox as CheckBox, CheckBoxComponent, ClickedAction, DFHFormProvider as ComponentProvider, CustomFileInput, CustomDatePicker as DatePicker, DialogBox, type DropdownSearchProps, DynamicDualInputTextGroupFormGen, FilterButtonGroup, Heading, HistoryDetails, type ISolutionvalues, Icon, IconInput, ImageInput, ImagePreview, IndeterminateCheckbox, InfoCard, Input, InputDatePicker, type InputType, InputValidation, InputsGroup, Label, type ListMasterDataProps, ListRow, LoadingSpinner, Logo, type LogoProps, Message, type MessageProps, Modal, MultiSelectFormGen, NavBar, type NoteChildrenProps, NoteEditor, type NoteHistoryProps, type NoteItemProps, type NoteProps, type OptionProps, PanelCard, PhoneNumberInput, PhoneNumberInput2, PhoneNumberInput3, PreviousDataBadge, ProgressBar, RadioButton, RegularDropdown, Row, SearchDropdownWithButton, Select, SelectUserWithButton, SideBarListView, Signature, SortDropdown, Spinner, SsnInput, Stepper, Tab, TabButton, TabList, TabPanel, Table, TagSelect as TagDropdown, TagSelect, Textarea, Timeline, type TimelineEventProps, Todos, Tooltip, TooltipWithChildren, Typho, Typhography, TyphographyFormGen, UrgentChallenges, type UrgentDataProps, useSchemaProcessor as UseSchemaProcessor, type VariantTypes, VersionDateDropdown, setDateWithoutTimezone, themeConfigs, usePagination, useSorting };
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "dfh-ui-library",
|
3
|
-
"version": "1.13.
|
3
|
+
"version": "1.13.18",
|
4
4
|
"description": "",
|
5
5
|
"scripts": {
|
6
6
|
"build": "rollup -c --bundleConfigAsCjs --environment NODE_ENV:production",
|
@@ -23,6 +23,7 @@
|
|
23
23
|
"@types/react": "^18.2.37",
|
24
24
|
"autoprefixer": "^10.4.16",
|
25
25
|
"classnames": "^2.3.2",
|
26
|
+
"date-fns": "^4.1.0",
|
26
27
|
"dfh-form-generator": "^1.2.138",
|
27
28
|
"dompurify": "^3.1.6",
|
28
29
|
"formik": "^2.4.5",
|