dfh-ui-library 1.9.3 → 1.9.5
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.css +1 -1
- package/dist/cjs/index.css.map +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/Button/Button.handler.d.ts +1 -1
- package/dist/cjs/types/components/Gird/Grid.d.ts +3 -1
- package/dist/cjs/types/components/Gird/index.d.ts +1 -0
- package/dist/cjs/types/components/Media/Icons/Icons.d.ts +6 -2
- package/dist/cjs/types/components/index.d.ts +3 -0
- package/dist/cjs/types/constants/Images.d.ts +1 -0
- package/dist/cjs/types/shared/configs/customClasses.d.ts +2 -1
- package/dist/cjs/types/shared/configs/themeConfig.d.ts +1 -1
- package/dist/cjs/types/shared/models/components/base.model.d.ts +5 -2
- package/dist/cjs/types/shared/models/components/common.model.d.ts +30 -0
- package/dist/esm/index.css +1 -1
- package/dist/esm/index.css.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/Button/Button.handler.d.ts +1 -1
- package/dist/esm/types/components/Gird/Grid.d.ts +3 -1
- package/dist/esm/types/components/Gird/index.d.ts +1 -0
- package/dist/esm/types/components/Media/Icons/Icons.d.ts +6 -2
- package/dist/esm/types/components/index.d.ts +3 -0
- package/dist/esm/types/constants/Images.d.ts +1 -0
- package/dist/esm/types/shared/configs/customClasses.d.ts +2 -1
- package/dist/esm/types/shared/configs/themeConfig.d.ts +1 -1
- package/dist/esm/types/shared/models/components/base.model.d.ts +5 -2
- package/dist/esm/types/shared/models/components/common.model.d.ts +30 -0
- package/dist/index.d.ts +50 -6
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { 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
|
-
export type VariantTypes = "large" | "small" | "extraSmall" | "largeOutlined" | "smallOutlined" | "extraSmallOutlined" | "default" | "defaultOutlined" | "primaryBlue" | "primaryWhite" | "primaryWhiteSelected" | "primaryWhiteNoBoader" | "primaryWhiteIcon" | "primaryRed" | undefined;
|
|
3
|
+
export type VariantTypes = "large" | "small" | "extraSmall" | "largeOutlined" | "smallOutlined" | "extraSmallOutlined" | "default" | "defaultOutlined" | "primaryBlue" | "primaryWhite" | "primaryWhiteSelected" | "primaryWhiteNoBoader" | "primaryWhiteIcon" | "primaryRed" | "primaryFilterSelected" | "primaryBlueFilter" | undefined;
|
|
4
4
|
export interface IButtonProps extends IChildrenProp, IAdditionalClassesProp, IIconTypeProp, IOnClickEventProps {
|
|
5
5
|
/**
|
|
6
6
|
* Set the button type
|
|
@@ -156,6 +156,8 @@ export interface IHookFormsInputProps extends InputHTMLAttributes<HTMLInputEleme
|
|
|
156
156
|
enableToolTip?: boolean;
|
|
157
157
|
tooltipProps?: ToolTipProps;
|
|
158
158
|
suffixed?: string;
|
|
159
|
+
labelLeftAction?: () => void;
|
|
160
|
+
labelLeftText?: string;
|
|
159
161
|
}
|
|
160
162
|
export interface IFormGenInputProps {
|
|
161
163
|
/**
|
|
@@ -243,7 +245,7 @@ export interface ICheckboxProps {
|
|
|
243
245
|
id?: any;
|
|
244
246
|
label?: string;
|
|
245
247
|
}
|
|
246
|
-
export type LABELTYPE = "default" | "black" | "smallSelect" | "blackSmall" | "formLabel" | "formLabelMedeum" | "formButtonGroup" | undefined;
|
|
248
|
+
export type LABELTYPE = "default" | "black" | "smallSelect" | "blackSmall" | "formLabel" | "formLabelMedeum" | "formButtonGroup" | "fontSemiBold" | undefined;
|
|
247
249
|
export interface ILabelProps {
|
|
248
250
|
/**
|
|
249
251
|
* Set the Label Type
|
|
@@ -498,6 +500,7 @@ export interface ITabPanelProps extends AdditionalClassesProp {
|
|
|
498
500
|
value: string;
|
|
499
501
|
/** Identifier for the tab panel. */
|
|
500
502
|
index: string;
|
|
503
|
+
isCenter?: boolean;
|
|
501
504
|
}
|
|
502
505
|
export interface IPanelCardProps extends AdditionalClassesProp {
|
|
503
506
|
/** Header title displayed on header area of the card. */
|
|
@@ -114,6 +114,8 @@ export interface MessageProps {
|
|
|
114
114
|
}
|
|
115
115
|
export interface BreadcrumbProps {
|
|
116
116
|
items: BreadcrumbItem[];
|
|
117
|
+
singleArrow?: boolean;
|
|
118
|
+
addtionalClasses?: string;
|
|
117
119
|
}
|
|
118
120
|
export interface BreadcrumbItem {
|
|
119
121
|
label: string;
|
|
@@ -129,6 +131,7 @@ export interface ImagePreviewProps {
|
|
|
129
131
|
bgColor?: string;
|
|
130
132
|
textClasses?: string;
|
|
131
133
|
handleImageLoad?: () => void;
|
|
134
|
+
defaultImageUrl?: string;
|
|
132
135
|
}
|
|
133
136
|
export interface ImageInputProps {
|
|
134
137
|
imageUrl?: string;
|
|
@@ -210,6 +213,7 @@ export interface CustomDatePickerProps {
|
|
|
210
213
|
additionalClasses?: string | undefined;
|
|
211
214
|
readOnly?: boolean;
|
|
212
215
|
type?: InputType;
|
|
216
|
+
height?: string;
|
|
213
217
|
/**
|
|
214
218
|
* Set new variant of the input
|
|
215
219
|
*/
|
|
@@ -320,6 +324,29 @@ export interface DropdownSearchProps {
|
|
|
320
324
|
listHeader?: string;
|
|
321
325
|
selected?: string;
|
|
322
326
|
}
|
|
327
|
+
export interface UserDropdownProps {
|
|
328
|
+
options?: OptionProps[];
|
|
329
|
+
label?: string;
|
|
330
|
+
labelType?: LableTypes;
|
|
331
|
+
onSelectedValuesChange?: (selectedValue: OptionProps) => void;
|
|
332
|
+
onSelectedMultiValuesChange?: (selectedValue: OptionProps[]) => void;
|
|
333
|
+
buttonProps?: BtnOptionDropdown[];
|
|
334
|
+
defaultValue?: string;
|
|
335
|
+
additionalErrorClasses?: string;
|
|
336
|
+
error?: string;
|
|
337
|
+
additionalClasses?: string;
|
|
338
|
+
readOnly?: boolean;
|
|
339
|
+
isBorderedError?: boolean;
|
|
340
|
+
selectedValues?: OptionProps[];
|
|
341
|
+
setSelectedValues?: any;
|
|
342
|
+
onClick?: () => void;
|
|
343
|
+
variants?: string;
|
|
344
|
+
isNoNBoarder?: boolean;
|
|
345
|
+
isLeft?: boolean;
|
|
346
|
+
disabled?: boolean;
|
|
347
|
+
edited?: boolean;
|
|
348
|
+
editedValue?: OptionProps;
|
|
349
|
+
}
|
|
323
350
|
export declare enum ClickedAction {
|
|
324
351
|
NONE = "NONE",
|
|
325
352
|
ADDME = "ADDME",
|
|
@@ -343,6 +370,7 @@ export interface ButtonGroupProps extends InputGroupProps {
|
|
|
343
370
|
id: number;
|
|
344
371
|
value: string;
|
|
345
372
|
}[];
|
|
373
|
+
optionsUser?: OptionProps[];
|
|
346
374
|
onSelect: (selectedOption: number) => void;
|
|
347
375
|
label?: string;
|
|
348
376
|
error?: string;
|
|
@@ -352,6 +380,8 @@ export interface ButtonGroupProps extends InputGroupProps {
|
|
|
352
380
|
additionalClasses?: string;
|
|
353
381
|
onFileChange?: (file: File | null) => void;
|
|
354
382
|
secondaryComponentsVisible?: boolean;
|
|
383
|
+
onSelectedUsers?: (selectedOption: OptionProps[] | undefined) => void;
|
|
384
|
+
buttonGroupCol?: string;
|
|
355
385
|
onValueChange?: (value: string) => void;
|
|
356
386
|
}
|
|
357
387
|
export interface ButtonGroupWithUploadProps extends InputGroupProps {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import * as React$1 from 'react';
|
|
3
|
-
import React__default, { InputHTMLAttributes, SelectHTMLAttributes, TextareaHTMLAttributes, FC, ReactNode } from 'react';
|
|
3
|
+
import React__default, { InputHTMLAttributes, SelectHTMLAttributes, TextareaHTMLAttributes, FC, ReactNode, HTMLProps } from 'react';
|
|
4
4
|
import { ColumnDef, OnChangeFn, SortingState, PaginationState } from '@tanstack/react-table';
|
|
5
5
|
export { ColumnDef, SortingState } from '@tanstack/react-table';
|
|
6
6
|
|
|
@@ -78,6 +78,8 @@ interface MessageProps {
|
|
|
78
78
|
}
|
|
79
79
|
interface BreadcrumbProps {
|
|
80
80
|
items: BreadcrumbItem[];
|
|
81
|
+
singleArrow?: boolean;
|
|
82
|
+
addtionalClasses?: string;
|
|
81
83
|
}
|
|
82
84
|
interface BreadcrumbItem {
|
|
83
85
|
label: string;
|
|
@@ -93,6 +95,7 @@ interface ImagePreviewProps {
|
|
|
93
95
|
bgColor?: string;
|
|
94
96
|
textClasses?: string;
|
|
95
97
|
handleImageLoad?: () => void;
|
|
98
|
+
defaultImageUrl?: string;
|
|
96
99
|
}
|
|
97
100
|
interface ImageInputProps {
|
|
98
101
|
imageUrl?: string;
|
|
@@ -174,6 +177,7 @@ interface CustomDatePickerProps {
|
|
|
174
177
|
additionalClasses?: string | undefined;
|
|
175
178
|
readOnly?: boolean;
|
|
176
179
|
type?: InputType;
|
|
180
|
+
height?: string;
|
|
177
181
|
/**
|
|
178
182
|
* Set new variant of the input
|
|
179
183
|
*/
|
|
@@ -284,6 +288,29 @@ interface DropdownSearchProps {
|
|
|
284
288
|
listHeader?: string;
|
|
285
289
|
selected?: string;
|
|
286
290
|
}
|
|
291
|
+
interface UserDropdownProps {
|
|
292
|
+
options?: OptionProps[];
|
|
293
|
+
label?: string;
|
|
294
|
+
labelType?: LableTypes;
|
|
295
|
+
onSelectedValuesChange?: (selectedValue: OptionProps) => void;
|
|
296
|
+
onSelectedMultiValuesChange?: (selectedValue: OptionProps[]) => void;
|
|
297
|
+
buttonProps?: BtnOptionDropdown[];
|
|
298
|
+
defaultValue?: string;
|
|
299
|
+
additionalErrorClasses?: string;
|
|
300
|
+
error?: string;
|
|
301
|
+
additionalClasses?: string;
|
|
302
|
+
readOnly?: boolean;
|
|
303
|
+
isBorderedError?: boolean;
|
|
304
|
+
selectedValues?: OptionProps[];
|
|
305
|
+
setSelectedValues?: any;
|
|
306
|
+
onClick?: () => void;
|
|
307
|
+
variants?: string;
|
|
308
|
+
isNoNBoarder?: boolean;
|
|
309
|
+
isLeft?: boolean;
|
|
310
|
+
disabled?: boolean;
|
|
311
|
+
edited?: boolean;
|
|
312
|
+
editedValue?: OptionProps;
|
|
313
|
+
}
|
|
287
314
|
declare enum ClickedAction {
|
|
288
315
|
NONE = "NONE",
|
|
289
316
|
ADDME = "ADDME",
|
|
@@ -307,6 +334,7 @@ interface ButtonGroupProps extends InputGroupProps {
|
|
|
307
334
|
id: number;
|
|
308
335
|
value: string;
|
|
309
336
|
}[];
|
|
337
|
+
optionsUser?: OptionProps[];
|
|
310
338
|
onSelect: (selectedOption: number) => void;
|
|
311
339
|
label?: string;
|
|
312
340
|
error?: string;
|
|
@@ -316,6 +344,8 @@ interface ButtonGroupProps extends InputGroupProps {
|
|
|
316
344
|
additionalClasses?: string;
|
|
317
345
|
onFileChange?: (file: File | null) => void;
|
|
318
346
|
secondaryComponentsVisible?: boolean;
|
|
347
|
+
onSelectedUsers?: (selectedOption: OptionProps[] | undefined) => void;
|
|
348
|
+
buttonGroupCol?: string;
|
|
319
349
|
onValueChange?: (value: string) => void;
|
|
320
350
|
}
|
|
321
351
|
interface ButtonGroupWithUploadProps extends InputGroupProps {
|
|
@@ -400,7 +430,7 @@ interface ICardInfoProps {
|
|
|
400
430
|
HeaderText?: string;
|
|
401
431
|
}
|
|
402
432
|
|
|
403
|
-
type VariantTypes = "large" | "small" | "extraSmall" | "largeOutlined" | "smallOutlined" | "extraSmallOutlined" | "default" | "defaultOutlined" | "primaryBlue" | "primaryWhite" | "primaryWhiteSelected" | "primaryWhiteNoBoader" | "primaryWhiteIcon" | "primaryRed" | undefined;
|
|
433
|
+
type VariantTypes = "large" | "small" | "extraSmall" | "largeOutlined" | "smallOutlined" | "extraSmallOutlined" | "default" | "defaultOutlined" | "primaryBlue" | "primaryWhite" | "primaryWhiteSelected" | "primaryWhiteNoBoader" | "primaryWhiteIcon" | "primaryRed" | "primaryFilterSelected" | "primaryBlueFilter" | undefined;
|
|
404
434
|
interface IButtonProps extends IChildrenProp, IAdditionalClassesProp, IIconTypeProp, IOnClickEventProps {
|
|
405
435
|
/**
|
|
406
436
|
* Set the button type
|
|
@@ -556,6 +586,8 @@ interface IHookFormsInputProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
|
556
586
|
enableToolTip?: boolean;
|
|
557
587
|
tooltipProps?: ToolTipProps;
|
|
558
588
|
suffixed?: string;
|
|
589
|
+
labelLeftAction?: () => void;
|
|
590
|
+
labelLeftText?: string;
|
|
559
591
|
}
|
|
560
592
|
interface ICheckboxProps {
|
|
561
593
|
onChange?: (checked: boolean) => void;
|
|
@@ -563,7 +595,7 @@ interface ICheckboxProps {
|
|
|
563
595
|
id?: any;
|
|
564
596
|
label?: string;
|
|
565
597
|
}
|
|
566
|
-
type LABELTYPE = "default" | "black" | "smallSelect" | "blackSmall" | "formLabel" | "formLabelMedeum" | "formButtonGroup" | undefined;
|
|
598
|
+
type LABELTYPE = "default" | "black" | "smallSelect" | "blackSmall" | "formLabel" | "formLabelMedeum" | "formButtonGroup" | "fontSemiBold" | undefined;
|
|
567
599
|
interface ILabelProps {
|
|
568
600
|
/**
|
|
569
601
|
* Set the Label Type
|
|
@@ -795,6 +827,7 @@ interface ITabPanelProps extends AdditionalClassesProp {
|
|
|
795
827
|
value: string;
|
|
796
828
|
/** Identifier for the tab panel. */
|
|
797
829
|
index: string;
|
|
830
|
+
isCenter?: boolean;
|
|
798
831
|
}
|
|
799
832
|
interface IPanelCardProps extends AdditionalClassesProp {
|
|
800
833
|
/** Header title displayed on header area of the card. */
|
|
@@ -940,7 +973,7 @@ declare const ButtonGroup: React__default.FC<ButtonGroupProps>;
|
|
|
940
973
|
declare const Icon: React__default.FC<IIconProps>;
|
|
941
974
|
|
|
942
975
|
declare function Table({ data, columns, sorting, onSortingChange, pagination, onPaginationChange, totalRecords, isManualPagination, // true for server-side pagination
|
|
943
|
-
isManualSorting, rowClick, }: {
|
|
976
|
+
isManualSorting, rowClick, key, setRowSelection, }: {
|
|
944
977
|
data: any[];
|
|
945
978
|
columns: ColumnDef<any>[];
|
|
946
979
|
sorting?: any;
|
|
@@ -951,8 +984,15 @@ isManualSorting, rowClick, }: {
|
|
|
951
984
|
isManualPagination?: boolean;
|
|
952
985
|
isManualSorting?: boolean;
|
|
953
986
|
rowClick?: (row: any) => void;
|
|
987
|
+
key?: any;
|
|
988
|
+
setRowSelection?: any;
|
|
954
989
|
}): React__default.JSX.Element;
|
|
955
990
|
|
|
991
|
+
declare function IndeterminateCheckbox({ indeterminate, rowId, className, ...rest }: {
|
|
992
|
+
indeterminate?: boolean;
|
|
993
|
+
rowId?: any;
|
|
994
|
+
} & HTMLProps<HTMLInputElement>): React__default.JSX.Element;
|
|
995
|
+
|
|
956
996
|
declare const Tab: React__default.FC<ITabProps>;
|
|
957
997
|
|
|
958
998
|
declare const TabList: React__default.FC<ITabListProps>;
|
|
@@ -982,6 +1022,10 @@ declare const ButtonGroupWithInputsFormGen: React__default.FC<FormGenButtonGroup
|
|
|
982
1022
|
|
|
983
1023
|
declare const DynamicDualInputTextGroupFormGen: React__default.FC<DyanamicDualInputProps>;
|
|
984
1024
|
|
|
1025
|
+
declare const FilterButtonGroup: React__default.FC<ButtonGroupProps>;
|
|
1026
|
+
|
|
1027
|
+
declare const SelectUserWithButton: React__default.FC<UserDropdownProps>;
|
|
1028
|
+
|
|
985
1029
|
interface UseSchemaProcessorProps {
|
|
986
1030
|
schema: ISchema[];
|
|
987
1031
|
externalSetComponents: (data: IComponent[]) => void;
|
|
@@ -1189,7 +1233,6 @@ declare const themeConfigs: {
|
|
|
1189
1233
|
500: string;
|
|
1190
1234
|
600: string;
|
|
1191
1235
|
700: string;
|
|
1192
|
-
720: string;
|
|
1193
1236
|
725: string;
|
|
1194
1237
|
800: string;
|
|
1195
1238
|
820: string;
|
|
@@ -1226,6 +1269,7 @@ declare const themeConfigs: {
|
|
|
1226
1269
|
"19s": string[];
|
|
1227
1270
|
"20s": string[];
|
|
1228
1271
|
"24s": string[];
|
|
1272
|
+
"24-32s": string[];
|
|
1229
1273
|
"26s": string[];
|
|
1230
1274
|
"28s": string[];
|
|
1231
1275
|
"32s": string[];
|
|
@@ -1286,4 +1330,4 @@ declare const themeConfigs: {
|
|
|
1286
1330
|
plugins: any[];
|
|
1287
1331
|
};
|
|
1288
1332
|
|
|
1289
|
-
export { Breadcrumb, type BtnOptionDropdown, Button, ButtonGroup, ButtonGroupFormGen, ButtonGroupWithInputs, ButtonGroupWithInputsFormGen, ButtonGroupWithUpload, Card, Checkbox as CheckBox, ClickedAction, DFHFormProvider as ComponentProvider, CustomFileInput, CustomDatePicker as DatePicker, DialogBox, type DropdownSearchProps, DynamicDualInputTextGroupFormGen, Heading, Icon, IconInput, ImageInput, ImagePreview, InfoCard, Input, type InputType, InputValidation, InputsGroup, Label, LoadingSpinner, Logo, type LogoProps, Message, type MessageProps, Modal, NavBar, type OptionProps, PanelCard, PhoneNumberInput, ProgressBar, RadioButton, Row, SearchDropdownWithButton, Select, Stepper, Tab, TabList, TabPanel, Table, TagSelect as TagDropdown, TagSelect, Textarea, Tooltip, Typhography, useSchemaProcessor as UseSchemaProcessor, type VariantTypes, themeConfigs, usePagination, useSorting };
|
|
1333
|
+
export { Breadcrumb, type BtnOptionDropdown, Button, ButtonGroup, ButtonGroupFormGen, ButtonGroupWithInputs, ButtonGroupWithInputsFormGen, ButtonGroupWithUpload, Card, Checkbox as CheckBox, ClickedAction, DFHFormProvider as ComponentProvider, CustomFileInput, CustomDatePicker as DatePicker, DialogBox, type DropdownSearchProps, DynamicDualInputTextGroupFormGen, FilterButtonGroup, Heading, Icon, IconInput, ImageInput, ImagePreview, IndeterminateCheckbox, InfoCard, Input, type InputType, InputValidation, InputsGroup, Label, LoadingSpinner, Logo, type LogoProps, Message, type MessageProps, Modal, NavBar, type OptionProps, PanelCard, PhoneNumberInput, ProgressBar, RadioButton, Row, SearchDropdownWithButton, Select, SelectUserWithButton, Stepper, Tab, TabList, TabPanel, Table, TagSelect as TagDropdown, TagSelect, Textarea, Tooltip, Typhography, useSchemaProcessor as UseSchemaProcessor, type VariantTypes, themeConfigs, usePagination, useSorting };
|