dfh-ui-library 1.9.2 → 1.9.3
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 +1 -3
- package/dist/cjs/types/components/Gird/index.d.ts +0 -1
- package/dist/cjs/types/components/Media/Icons/Icons.d.ts +2 -5
- package/dist/cjs/types/components/index.d.ts +0 -3
- package/dist/cjs/types/shared/configs/customClasses.d.ts +1 -2
- package/dist/cjs/types/shared/configs/themeConfig.d.ts +1 -1
- package/dist/cjs/types/shared/models/components/base.model.d.ts +2 -5
- package/dist/cjs/types/shared/models/components/common.model.d.ts +0 -29
- 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 +1 -3
- package/dist/esm/types/components/Gird/index.d.ts +0 -1
- package/dist/esm/types/components/Media/Icons/Icons.d.ts +2 -5
- package/dist/esm/types/components/index.d.ts +0 -3
- package/dist/esm/types/shared/configs/customClasses.d.ts +1 -2
- package/dist/esm/types/shared/configs/themeConfig.d.ts +1 -1
- package/dist/esm/types/shared/models/components/base.model.d.ts +2 -5
- package/dist/esm/types/shared/models/components/common.model.d.ts +0 -29
- package/dist/index.d.ts +6 -49
- package/package.json +1 -1
|
@@ -114,8 +114,6 @@ export interface MessageProps {
|
|
|
114
114
|
}
|
|
115
115
|
export interface BreadcrumbProps {
|
|
116
116
|
items: BreadcrumbItem[];
|
|
117
|
-
singleArrow?: boolean;
|
|
118
|
-
addtionalClasses?: string;
|
|
119
117
|
}
|
|
120
118
|
export interface BreadcrumbItem {
|
|
121
119
|
label: string;
|
|
@@ -212,7 +210,6 @@ export interface CustomDatePickerProps {
|
|
|
212
210
|
additionalClasses?: string | undefined;
|
|
213
211
|
readOnly?: boolean;
|
|
214
212
|
type?: InputType;
|
|
215
|
-
height?: string;
|
|
216
213
|
/**
|
|
217
214
|
* Set new variant of the input
|
|
218
215
|
*/
|
|
@@ -323,29 +320,6 @@ export interface DropdownSearchProps {
|
|
|
323
320
|
listHeader?: string;
|
|
324
321
|
selected?: string;
|
|
325
322
|
}
|
|
326
|
-
export interface UserDropdownProps {
|
|
327
|
-
options?: OptionProps[];
|
|
328
|
-
label?: string;
|
|
329
|
-
labelType?: LableTypes;
|
|
330
|
-
onSelectedValuesChange?: (selectedValue: OptionProps) => void;
|
|
331
|
-
onSelectedMultiValuesChange?: (selectedValue: OptionProps[]) => void;
|
|
332
|
-
buttonProps?: BtnOptionDropdown[];
|
|
333
|
-
defaultValue?: string;
|
|
334
|
-
additionalErrorClasses?: string;
|
|
335
|
-
error?: string;
|
|
336
|
-
additionalClasses?: string;
|
|
337
|
-
readOnly?: boolean;
|
|
338
|
-
isBorderedError?: boolean;
|
|
339
|
-
selectedValues?: OptionProps[];
|
|
340
|
-
setSelectedValues?: any;
|
|
341
|
-
onClick?: () => void;
|
|
342
|
-
variants?: string;
|
|
343
|
-
isNoNBoarder?: boolean;
|
|
344
|
-
isLeft?: boolean;
|
|
345
|
-
disabled?: boolean;
|
|
346
|
-
edited?: boolean;
|
|
347
|
-
editedValue?: OptionProps;
|
|
348
|
-
}
|
|
349
323
|
export declare enum ClickedAction {
|
|
350
324
|
NONE = "NONE",
|
|
351
325
|
ADDME = "ADDME",
|
|
@@ -369,7 +343,6 @@ export interface ButtonGroupProps extends InputGroupProps {
|
|
|
369
343
|
id: number;
|
|
370
344
|
value: string;
|
|
371
345
|
}[];
|
|
372
|
-
optionsUser?: OptionProps[];
|
|
373
346
|
onSelect: (selectedOption: number) => void;
|
|
374
347
|
label?: string;
|
|
375
348
|
error?: string;
|
|
@@ -379,8 +352,6 @@ export interface ButtonGroupProps extends InputGroupProps {
|
|
|
379
352
|
additionalClasses?: string;
|
|
380
353
|
onFileChange?: (file: File | null) => void;
|
|
381
354
|
secondaryComponentsVisible?: boolean;
|
|
382
|
-
onSelectedUsers?: (selectedOption: OptionProps[] | undefined) => void;
|
|
383
|
-
buttonGroupCol?: string;
|
|
384
355
|
onValueChange?: (value: string) => void;
|
|
385
356
|
}
|
|
386
357
|
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
|
|
3
|
+
import React__default, { InputHTMLAttributes, SelectHTMLAttributes, TextareaHTMLAttributes, FC, ReactNode } 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,8 +78,6 @@ interface MessageProps {
|
|
|
78
78
|
}
|
|
79
79
|
interface BreadcrumbProps {
|
|
80
80
|
items: BreadcrumbItem[];
|
|
81
|
-
singleArrow?: boolean;
|
|
82
|
-
addtionalClasses?: string;
|
|
83
81
|
}
|
|
84
82
|
interface BreadcrumbItem {
|
|
85
83
|
label: string;
|
|
@@ -176,7 +174,6 @@ interface CustomDatePickerProps {
|
|
|
176
174
|
additionalClasses?: string | undefined;
|
|
177
175
|
readOnly?: boolean;
|
|
178
176
|
type?: InputType;
|
|
179
|
-
height?: string;
|
|
180
177
|
/**
|
|
181
178
|
* Set new variant of the input
|
|
182
179
|
*/
|
|
@@ -287,29 +284,6 @@ interface DropdownSearchProps {
|
|
|
287
284
|
listHeader?: string;
|
|
288
285
|
selected?: string;
|
|
289
286
|
}
|
|
290
|
-
interface UserDropdownProps {
|
|
291
|
-
options?: OptionProps[];
|
|
292
|
-
label?: string;
|
|
293
|
-
labelType?: LableTypes;
|
|
294
|
-
onSelectedValuesChange?: (selectedValue: OptionProps) => void;
|
|
295
|
-
onSelectedMultiValuesChange?: (selectedValue: OptionProps[]) => void;
|
|
296
|
-
buttonProps?: BtnOptionDropdown[];
|
|
297
|
-
defaultValue?: string;
|
|
298
|
-
additionalErrorClasses?: string;
|
|
299
|
-
error?: string;
|
|
300
|
-
additionalClasses?: string;
|
|
301
|
-
readOnly?: boolean;
|
|
302
|
-
isBorderedError?: boolean;
|
|
303
|
-
selectedValues?: OptionProps[];
|
|
304
|
-
setSelectedValues?: any;
|
|
305
|
-
onClick?: () => void;
|
|
306
|
-
variants?: string;
|
|
307
|
-
isNoNBoarder?: boolean;
|
|
308
|
-
isLeft?: boolean;
|
|
309
|
-
disabled?: boolean;
|
|
310
|
-
edited?: boolean;
|
|
311
|
-
editedValue?: OptionProps;
|
|
312
|
-
}
|
|
313
287
|
declare enum ClickedAction {
|
|
314
288
|
NONE = "NONE",
|
|
315
289
|
ADDME = "ADDME",
|
|
@@ -333,7 +307,6 @@ interface ButtonGroupProps extends InputGroupProps {
|
|
|
333
307
|
id: number;
|
|
334
308
|
value: string;
|
|
335
309
|
}[];
|
|
336
|
-
optionsUser?: OptionProps[];
|
|
337
310
|
onSelect: (selectedOption: number) => void;
|
|
338
311
|
label?: string;
|
|
339
312
|
error?: string;
|
|
@@ -343,8 +316,6 @@ interface ButtonGroupProps extends InputGroupProps {
|
|
|
343
316
|
additionalClasses?: string;
|
|
344
317
|
onFileChange?: (file: File | null) => void;
|
|
345
318
|
secondaryComponentsVisible?: boolean;
|
|
346
|
-
onSelectedUsers?: (selectedOption: OptionProps[] | undefined) => void;
|
|
347
|
-
buttonGroupCol?: string;
|
|
348
319
|
onValueChange?: (value: string) => void;
|
|
349
320
|
}
|
|
350
321
|
interface ButtonGroupWithUploadProps extends InputGroupProps {
|
|
@@ -429,7 +400,7 @@ interface ICardInfoProps {
|
|
|
429
400
|
HeaderText?: string;
|
|
430
401
|
}
|
|
431
402
|
|
|
432
|
-
type VariantTypes = "large" | "small" | "extraSmall" | "largeOutlined" | "smallOutlined" | "extraSmallOutlined" | "default" | "defaultOutlined" | "primaryBlue" | "primaryWhite" | "primaryWhiteSelected" | "primaryWhiteNoBoader" | "primaryWhiteIcon" | "primaryRed" |
|
|
403
|
+
type VariantTypes = "large" | "small" | "extraSmall" | "largeOutlined" | "smallOutlined" | "extraSmallOutlined" | "default" | "defaultOutlined" | "primaryBlue" | "primaryWhite" | "primaryWhiteSelected" | "primaryWhiteNoBoader" | "primaryWhiteIcon" | "primaryRed" | undefined;
|
|
433
404
|
interface IButtonProps extends IChildrenProp, IAdditionalClassesProp, IIconTypeProp, IOnClickEventProps {
|
|
434
405
|
/**
|
|
435
406
|
* Set the button type
|
|
@@ -585,8 +556,6 @@ interface IHookFormsInputProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
|
585
556
|
enableToolTip?: boolean;
|
|
586
557
|
tooltipProps?: ToolTipProps;
|
|
587
558
|
suffixed?: string;
|
|
588
|
-
labelLeftAction?: () => void;
|
|
589
|
-
labelLeftText?: string;
|
|
590
559
|
}
|
|
591
560
|
interface ICheckboxProps {
|
|
592
561
|
onChange?: (checked: boolean) => void;
|
|
@@ -594,7 +563,7 @@ interface ICheckboxProps {
|
|
|
594
563
|
id?: any;
|
|
595
564
|
label?: string;
|
|
596
565
|
}
|
|
597
|
-
type LABELTYPE = "default" | "black" | "smallSelect" | "blackSmall" | "formLabel" | "formLabelMedeum" | "formButtonGroup" |
|
|
566
|
+
type LABELTYPE = "default" | "black" | "smallSelect" | "blackSmall" | "formLabel" | "formLabelMedeum" | "formButtonGroup" | undefined;
|
|
598
567
|
interface ILabelProps {
|
|
599
568
|
/**
|
|
600
569
|
* Set the Label Type
|
|
@@ -826,7 +795,6 @@ interface ITabPanelProps extends AdditionalClassesProp {
|
|
|
826
795
|
value: string;
|
|
827
796
|
/** Identifier for the tab panel. */
|
|
828
797
|
index: string;
|
|
829
|
-
isCenter?: boolean;
|
|
830
798
|
}
|
|
831
799
|
interface IPanelCardProps extends AdditionalClassesProp {
|
|
832
800
|
/** Header title displayed on header area of the card. */
|
|
@@ -972,7 +940,7 @@ declare const ButtonGroup: React__default.FC<ButtonGroupProps>;
|
|
|
972
940
|
declare const Icon: React__default.FC<IIconProps>;
|
|
973
941
|
|
|
974
942
|
declare function Table({ data, columns, sorting, onSortingChange, pagination, onPaginationChange, totalRecords, isManualPagination, // true for server-side pagination
|
|
975
|
-
isManualSorting, rowClick,
|
|
943
|
+
isManualSorting, rowClick, }: {
|
|
976
944
|
data: any[];
|
|
977
945
|
columns: ColumnDef<any>[];
|
|
978
946
|
sorting?: any;
|
|
@@ -983,15 +951,8 @@ isManualSorting, rowClick, key, setRowSelection, }: {
|
|
|
983
951
|
isManualPagination?: boolean;
|
|
984
952
|
isManualSorting?: boolean;
|
|
985
953
|
rowClick?: (row: any) => void;
|
|
986
|
-
key?: any;
|
|
987
|
-
setRowSelection?: any;
|
|
988
954
|
}): React__default.JSX.Element;
|
|
989
955
|
|
|
990
|
-
declare function IndeterminateCheckbox({ indeterminate, rowId, className, ...rest }: {
|
|
991
|
-
indeterminate?: boolean;
|
|
992
|
-
rowId?: any;
|
|
993
|
-
} & HTMLProps<HTMLInputElement>): React__default.JSX.Element;
|
|
994
|
-
|
|
995
956
|
declare const Tab: React__default.FC<ITabProps>;
|
|
996
957
|
|
|
997
958
|
declare const TabList: React__default.FC<ITabListProps>;
|
|
@@ -1021,10 +982,6 @@ declare const ButtonGroupWithInputsFormGen: React__default.FC<FormGenButtonGroup
|
|
|
1021
982
|
|
|
1022
983
|
declare const DynamicDualInputTextGroupFormGen: React__default.FC<DyanamicDualInputProps>;
|
|
1023
984
|
|
|
1024
|
-
declare const FilterButtonGroup: React__default.FC<ButtonGroupProps>;
|
|
1025
|
-
|
|
1026
|
-
declare const SelectUserWithButton: React__default.FC<UserDropdownProps>;
|
|
1027
|
-
|
|
1028
985
|
interface UseSchemaProcessorProps {
|
|
1029
986
|
schema: ISchema[];
|
|
1030
987
|
externalSetComponents: (data: IComponent[]) => void;
|
|
@@ -1232,6 +1189,7 @@ declare const themeConfigs: {
|
|
|
1232
1189
|
500: string;
|
|
1233
1190
|
600: string;
|
|
1234
1191
|
700: string;
|
|
1192
|
+
720: string;
|
|
1235
1193
|
725: string;
|
|
1236
1194
|
800: string;
|
|
1237
1195
|
820: string;
|
|
@@ -1268,7 +1226,6 @@ declare const themeConfigs: {
|
|
|
1268
1226
|
"19s": string[];
|
|
1269
1227
|
"20s": string[];
|
|
1270
1228
|
"24s": string[];
|
|
1271
|
-
"24-32s": string[];
|
|
1272
1229
|
"26s": string[];
|
|
1273
1230
|
"28s": string[];
|
|
1274
1231
|
"32s": string[];
|
|
@@ -1329,4 +1286,4 @@ declare const themeConfigs: {
|
|
|
1329
1286
|
plugins: any[];
|
|
1330
1287
|
};
|
|
1331
1288
|
|
|
1332
|
-
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,
|
|
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 };
|