dfh-ui-library 1.14.39 → 1.14.40
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.d.ts +3 -3
- package/dist/cjs/types/components/Button/Button.handler.d.ts +1 -1
- package/dist/cjs/types/components/Button/Button.stories.d.ts +4 -2
- package/dist/cjs/types/components/Button/ButtonV2.d.ts +1 -1
- package/dist/cjs/types/components/FilterButtonGroup/FilterButton.d.ts +1 -1
- package/dist/cjs/types/components/FormElements/IconInput/IconInput.handler.d.ts +1 -1
- package/dist/cjs/types/components/FormElements/IconInput/iconInputLock.d.ts +4 -1
- package/dist/cjs/types/components/FormElements/Select/Select.d.ts +2 -2
- package/dist/cjs/types/components/HorizontalRule/HorizontalRule.d.ts +6 -0
- package/dist/cjs/types/components/HorizontalRule/index.d.ts +1 -0
- package/dist/cjs/types/components/Media/Icon/IconV2.d.ts +1 -0
- package/dist/cjs/types/components/Typhography/Typhography.handler.d.ts +1 -1
- package/dist/cjs/types/components/core/Heading/Heading.d.ts +3 -3
- package/dist/cjs/types/components/index.d.ts +2 -1
- package/dist/cjs/types/shared/configs/customClasses.d.ts +4 -3
- package/dist/cjs/types/shared/configs/themeConfig.d.ts +36 -38
- package/dist/cjs/types/shared/models/components/base.model.d.ts +8 -5
- package/dist/cjs/types/shared/models/components/common.model.d.ts +10 -1
- 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.d.ts +3 -3
- package/dist/esm/types/components/Button/Button.handler.d.ts +1 -1
- package/dist/esm/types/components/Button/Button.stories.d.ts +4 -2
- package/dist/esm/types/components/Button/ButtonV2.d.ts +1 -1
- package/dist/esm/types/components/FilterButtonGroup/FilterButton.d.ts +1 -1
- package/dist/esm/types/components/FormElements/IconInput/IconInput.handler.d.ts +1 -1
- package/dist/esm/types/components/FormElements/IconInput/iconInputLock.d.ts +4 -1
- package/dist/esm/types/components/FormElements/Select/Select.d.ts +2 -2
- package/dist/esm/types/components/HorizontalRule/HorizontalRule.d.ts +6 -0
- package/dist/esm/types/components/HorizontalRule/index.d.ts +1 -0
- package/dist/esm/types/components/Media/Icon/IconV2.d.ts +1 -0
- package/dist/esm/types/components/Typhography/Typhography.handler.d.ts +1 -1
- package/dist/esm/types/components/core/Heading/Heading.d.ts +3 -3
- package/dist/esm/types/components/index.d.ts +2 -1
- package/dist/esm/types/shared/configs/customClasses.d.ts +4 -3
- package/dist/esm/types/shared/configs/themeConfig.d.ts +36 -38
- package/dist/esm/types/shared/models/components/base.model.d.ts +8 -5
- package/dist/esm/types/shared/models/components/common.model.d.ts +10 -1
- package/dist/index.d.ts +70 -52
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2,9 +2,9 @@ import * as React$1 from 'react';
|
|
|
2
2
|
import React__default, { InputHTMLAttributes, SelectHTMLAttributes, TextareaHTMLAttributes, ReactNode, FC, CSSProperties, HTMLProps } from 'react';
|
|
3
3
|
import { ColumnDef, OnChangeFn, SortingState, PaginationState } from '@tanstack/react-table';
|
|
4
4
|
export { ColumnDef, SortingState } from '@tanstack/react-table';
|
|
5
|
-
import { Tag } from 'react-tag-input';
|
|
6
5
|
import { IconName } from 'lucide-react/dynamic';
|
|
7
6
|
import { LucideProps } from 'lucide-react';
|
|
7
|
+
import { Tag } from 'react-tag-input';
|
|
8
8
|
|
|
9
9
|
interface ITodoToggleRequestParams$1 {
|
|
10
10
|
noteId?: string;
|
|
@@ -55,6 +55,15 @@ interface IIconTypeProp {
|
|
|
55
55
|
*/
|
|
56
56
|
iconColor?: IconColorTypes;
|
|
57
57
|
}
|
|
58
|
+
interface IIconV2Props {
|
|
59
|
+
color?: string;
|
|
60
|
+
size?: string;
|
|
61
|
+
variant?: IconVariant;
|
|
62
|
+
strokeWidth?: number;
|
|
63
|
+
absoluteStrokeWidth?: boolean;
|
|
64
|
+
additionalClasses?: string;
|
|
65
|
+
}
|
|
66
|
+
type IconNameType = IconName | keyof typeof customIcons;
|
|
58
67
|
interface IAdditionalClassesProp {
|
|
59
68
|
/**
|
|
60
69
|
* Optional | Set the additional classes
|
|
@@ -955,7 +964,7 @@ interface TableProps {
|
|
|
955
964
|
}
|
|
956
965
|
|
|
957
966
|
type VariantTypes = 'large' | 'small' | 'extraSmall' | 'largeOutlined' | 'smallOutlined' | 'extraSmallOutlined' | 'default' | 'defaultOutlined' | 'primaryBlue' | 'primaryWhite' | 'primaryWhiteDisable' | 'primaryRedBtn' | 'primaryRedBgBtn' | 'primaryWhiteSelected' | 'primaryWhiteNoBoader' | 'primaryWhiteIcon' | 'primaryRed' | 'primaryFilterSelected' | 'primaryBlueFilter' | 'smallWhite' | 'smallWhiteSelected' | 'smallBlue' | 'primaryNoBoader' | 'primaryBlue10' | 'noBoaderbgTransparent' | undefined;
|
|
958
|
-
interface IButtonProps extends IChildrenProp, IAdditionalClassesProp,
|
|
967
|
+
interface IButtonProps extends IChildrenProp, IAdditionalClassesProp, IOnClickEventProps {
|
|
959
968
|
/**
|
|
960
969
|
* Set the button type
|
|
961
970
|
*/
|
|
@@ -981,9 +990,10 @@ interface IButtonProps extends IChildrenProp, IAdditionalClassesProp, IIconTypeP
|
|
|
981
990
|
*/
|
|
982
991
|
iconAlignment?: AlignmentType;
|
|
983
992
|
/**
|
|
984
|
-
* Set icon
|
|
993
|
+
* Set icon name
|
|
985
994
|
*/
|
|
986
|
-
|
|
995
|
+
icon?: IconNameType;
|
|
996
|
+
iconProps?: IIconV2Props;
|
|
987
997
|
enableBagage?: boolean;
|
|
988
998
|
bagageProps?: BagageProps;
|
|
989
999
|
width?: string;
|
|
@@ -1122,6 +1132,8 @@ interface IHookFormsInputProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
|
1122
1132
|
iconClass?: string;
|
|
1123
1133
|
isIcon?: boolean;
|
|
1124
1134
|
icon?: string;
|
|
1135
|
+
iconProps?: IIconV2Props;
|
|
1136
|
+
infoIconProps?: IIconV2Props;
|
|
1125
1137
|
iconClassRight?: string;
|
|
1126
1138
|
iconClassLeft?: string;
|
|
1127
1139
|
iconOnClick?: () => void;
|
|
@@ -1313,7 +1325,7 @@ interface ICardProps {
|
|
|
1313
1325
|
/**
|
|
1314
1326
|
* Set button type
|
|
1315
1327
|
*/
|
|
1316
|
-
cardType?: 'lightGray' | 'lightGrayHalf' | 'gray' | 'white' | 'black' | 'whiteBorder' | 'bgLightBlue';
|
|
1328
|
+
cardType?: 'primaryBorder' | 'lightGray' | 'lightGrayHalf' | 'gray' | 'white' | 'black' | 'whiteBorder' | 'bgLightBlue';
|
|
1317
1329
|
/**
|
|
1318
1330
|
* Optional for additional classes
|
|
1319
1331
|
*/
|
|
@@ -1466,9 +1478,9 @@ declare enum IconVariant {
|
|
|
1466
1478
|
info = "info"
|
|
1467
1479
|
}
|
|
1468
1480
|
|
|
1469
|
-
declare const Button: ({ type, isDisabled, buttonLabel,
|
|
1481
|
+
declare const Button: ({ type, isDisabled, buttonLabel, icon, iconProps, iconAlignment, isIconEnabled, variants, additionalClasses, enableBagage, bagageProps, width, onClick, isLoading, }: IButtonProps) => React__default.JSX.Element;
|
|
1470
1482
|
|
|
1471
|
-
declare const ButtonV2: ({ type, isDisabled, buttonLabel,
|
|
1483
|
+
declare const ButtonV2: ({ type, isDisabled, buttonLabel, icon, iconProps, iconAlignment, isIconEnabled, variants, additionalClasses, enableBagage, bagageProps, width, onClick, isLoading, }: IButtonProps) => React__default.JSX.Element;
|
|
1472
1484
|
|
|
1473
1485
|
/**
|
|
1474
1486
|
* Primary UI component
|
|
@@ -1558,7 +1570,7 @@ declare const IconInput: FC<IHookFormsInputProps>;
|
|
|
1558
1570
|
*/
|
|
1559
1571
|
declare const IconInputV2: FC<IHookFormsInputProps>;
|
|
1560
1572
|
|
|
1561
|
-
interface ILockCodeInputProps extends Omit<IHookFormsInputProps, 'type' | 'value' | 'onChange'> {
|
|
1573
|
+
interface ILockCodeInputProps extends Omit<IHookFormsInputProps, 'type' | 'value' | 'onChange' | 'leftIcon' | 'rightIcon'> {
|
|
1562
1574
|
/** Number of input boxes (2-8) */
|
|
1563
1575
|
length?: number;
|
|
1564
1576
|
/** Current value as string */
|
|
@@ -1577,6 +1589,8 @@ interface ILockCodeInputProps extends Omit<IHookFormsInputProps, 'type' | 'value
|
|
|
1577
1589
|
allowPaste?: boolean;
|
|
1578
1590
|
/** Custom separator between inputs */
|
|
1579
1591
|
separator?: string;
|
|
1592
|
+
leftIcon?: IconName;
|
|
1593
|
+
rightIcon?: IconName;
|
|
1580
1594
|
}
|
|
1581
1595
|
/**
|
|
1582
1596
|
* Dynamic Lock Code Input Component
|
|
@@ -1684,12 +1698,12 @@ declare function DFHFormProvider({ schema, children, setComponents }: IComponent
|
|
|
1684
1698
|
*/
|
|
1685
1699
|
declare const Logo: React__default.FC<LogoProps>;
|
|
1686
1700
|
|
|
1687
|
-
type Props = {
|
|
1701
|
+
type Props$1 = {
|
|
1688
1702
|
markdown: string;
|
|
1689
1703
|
className?: string;
|
|
1690
1704
|
style?: CSSProperties;
|
|
1691
1705
|
};
|
|
1692
|
-
declare const MarkdownContent: React__default.FC<Props>;
|
|
1706
|
+
declare const MarkdownContent: React__default.FC<Props$1>;
|
|
1693
1707
|
|
|
1694
1708
|
declare const LoadingSpinner: React__default.FC<AdditionalClassesProp$1>;
|
|
1695
1709
|
|
|
@@ -1784,11 +1798,11 @@ interface HeadingProps {
|
|
|
1784
1798
|
/**
|
|
1785
1799
|
* Choose heading type
|
|
1786
1800
|
*/
|
|
1787
|
-
type?:
|
|
1801
|
+
type?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | undefined;
|
|
1788
1802
|
/**
|
|
1789
1803
|
* Use to decide the color
|
|
1790
1804
|
*/
|
|
1791
|
-
colorType?:
|
|
1805
|
+
colorType?: 'white' | 'dark' | 'gray' | undefined;
|
|
1792
1806
|
/**
|
|
1793
1807
|
* Heading contents
|
|
1794
1808
|
*/
|
|
@@ -1821,6 +1835,7 @@ declare const Icon: React__default.FC<IIconProps>;
|
|
|
1821
1835
|
type IconProps = {
|
|
1822
1836
|
size?: string;
|
|
1823
1837
|
icon: IconName | keyof typeof customIcons;
|
|
1838
|
+
fill?: string;
|
|
1824
1839
|
color?: string;
|
|
1825
1840
|
variant?: IconVariant;
|
|
1826
1841
|
strokeWidth?: number;
|
|
@@ -2012,7 +2027,7 @@ declare const SsnInput: React__default.FC<SsnInputProps>;
|
|
|
2012
2027
|
|
|
2013
2028
|
declare const MultiSelectFormGen: React__default.FC<IMultiSelectProps>;
|
|
2014
2029
|
|
|
2015
|
-
declare const FilterButton: ({ type, isDisabled, buttonLabel,
|
|
2030
|
+
declare const FilterButton: ({ type, isDisabled, buttonLabel, iconAlignment, isIconEnabled, variants, additionalClasses, iconProps, icon, enableBagage, bagageProps, width, onClick, }: IButtonProps) => React__default.JSX.Element;
|
|
2016
2031
|
|
|
2017
2032
|
interface MiniTimelineWrapperProps<T> {
|
|
2018
2033
|
items: T[];
|
|
@@ -2022,6 +2037,11 @@ interface MiniTimelineWrapperProps<T> {
|
|
|
2022
2037
|
}
|
|
2023
2038
|
declare const MiniTimelineWrapper: <T>({ items, hoveredIndex, renderContent, lineColor, }: MiniTimelineWrapperProps<T>) => React__default.JSX.Element;
|
|
2024
2039
|
|
|
2040
|
+
type Props = {
|
|
2041
|
+
className?: string;
|
|
2042
|
+
};
|
|
2043
|
+
declare function HorizontalRule({ className }: Props): React__default.JSX.Element;
|
|
2044
|
+
|
|
2025
2045
|
interface UseSchemaProcessorProps {
|
|
2026
2046
|
schema: ISchema[];
|
|
2027
2047
|
externalSetComponents: (data: IComponent[]) => void;
|
|
@@ -2076,17 +2096,17 @@ declare const themeConfigs: {
|
|
|
2076
2096
|
};
|
|
2077
2097
|
extend: {
|
|
2078
2098
|
animation: {
|
|
2079
|
-
|
|
2099
|
+
'spin-slow': string;
|
|
2080
2100
|
};
|
|
2081
2101
|
transitionDelay: {
|
|
2082
|
-
|
|
2102
|
+
'150': string;
|
|
2083
2103
|
};
|
|
2084
2104
|
screens: {
|
|
2085
2105
|
sm: string;
|
|
2086
2106
|
md: string;
|
|
2087
2107
|
lg: string;
|
|
2088
2108
|
xl: string;
|
|
2089
|
-
|
|
2109
|
+
'2xl': string;
|
|
2090
2110
|
};
|
|
2091
2111
|
borderColor: {
|
|
2092
2112
|
tcustomerror: string;
|
|
@@ -2094,7 +2114,7 @@ declare const themeConfigs: {
|
|
|
2094
2114
|
colors: {
|
|
2095
2115
|
transparent: string;
|
|
2096
2116
|
current: string;
|
|
2097
|
-
|
|
2117
|
+
'sky-light-blue': string;
|
|
2098
2118
|
btn: {
|
|
2099
2119
|
black: string;
|
|
2100
2120
|
disable: string;
|
|
@@ -2298,17 +2318,15 @@ declare const themeConfigs: {
|
|
|
2298
2318
|
};
|
|
2299
2319
|
};
|
|
2300
2320
|
state: {
|
|
2321
|
+
focushover: {
|
|
2322
|
+
foreground: string;
|
|
2323
|
+
background: string;
|
|
2324
|
+
border: string;
|
|
2325
|
+
};
|
|
2301
2326
|
active: {
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
border: string;
|
|
2306
|
-
};
|
|
2307
|
-
light: {
|
|
2308
|
-
foreground: string;
|
|
2309
|
-
background: string;
|
|
2310
|
-
border: string;
|
|
2311
|
-
};
|
|
2327
|
+
foreground: string;
|
|
2328
|
+
background: string;
|
|
2329
|
+
border: string;
|
|
2312
2330
|
};
|
|
2313
2331
|
disabled: {
|
|
2314
2332
|
foreground: string;
|
|
@@ -2333,29 +2351,29 @@ declare const themeConfigs: {
|
|
|
2333
2351
|
gray600: string;
|
|
2334
2352
|
};
|
|
2335
2353
|
fontSize: {
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2354
|
+
'8s': string[];
|
|
2355
|
+
'9s': string[];
|
|
2356
|
+
'10s': string[];
|
|
2357
|
+
'11s': string[];
|
|
2358
|
+
'12s': string[];
|
|
2359
|
+
'13s': string[];
|
|
2360
|
+
'14s': string[];
|
|
2361
|
+
'21s': string[];
|
|
2362
|
+
'16s': string[];
|
|
2363
|
+
'25s': string[];
|
|
2364
|
+
'17s': string[];
|
|
2365
|
+
'18s': string[];
|
|
2366
|
+
'19s': string[];
|
|
2367
|
+
'20s': string[];
|
|
2368
|
+
'24s': string[];
|
|
2369
|
+
'24-32s': string[];
|
|
2370
|
+
'26s': string[];
|
|
2371
|
+
'28s': string[];
|
|
2372
|
+
'32s': string[];
|
|
2373
|
+
'42s': string[];
|
|
2374
|
+
'40s': string[];
|
|
2375
|
+
'48s': string[];
|
|
2376
|
+
'54s': string[];
|
|
2359
2377
|
};
|
|
2360
2378
|
height: {
|
|
2361
2379
|
sm: string;
|
|
@@ -2366,7 +2384,7 @@ declare const themeConfigs: {
|
|
|
2366
2384
|
36: string;
|
|
2367
2385
|
38: string;
|
|
2368
2386
|
40: string;
|
|
2369
|
-
|
|
2387
|
+
'60px': string;
|
|
2370
2388
|
92: string;
|
|
2371
2389
|
78: string;
|
|
2372
2390
|
48: string;
|
|
@@ -2409,5 +2427,5 @@ declare const themeConfigs: {
|
|
|
2409
2427
|
plugins: any[];
|
|
2410
2428
|
};
|
|
2411
2429
|
|
|
2412
|
-
export { BADGETYPE, Badge, BorderType, Breadcrumb, Button, ButtonGroup, ButtonGroupFormGen, ButtonGroupMultiSelect, ButtonGroupMultiSelectV2, ButtonGroupMultiSelectWithInputsFormGen, ButtonGroupWithInputs, ButtonGroupWithInputsFormGen, ButtonGroupWithMultiSelectFormGen, ButtonGroupWithUpload, ButtonV2, Card, Checkbox as CheckBox, CheckBoxComponent, ClickedAction, ComboBox, ConboboxV2 as ComboboxV2, DFHFormProvider as ComponentProvider, CustomFileInput, CustomDatePicker as DatePicker, DialogBox, DynamicDualInputTextGroupFormGen, FilterButton, FilterButtonGroup, Heading, HistoryDetails, Icon, IconInput, IconInputV2, IconV2, IconVariant, ImageInput, ImagePreview, IndeterminateCheckbox, InfoCard, Input, InputDatePicker, InputDatePickerV2, InputValidation, InputsGroup, Label, ListRow, LoadingSpinner, LockCodeInput, Logo, MarkdownContent, Message, MiniTimelineWrapper as MiniTimelineCard, Modal, MultiSelectFormGen, NavBar, NoteEditor, NoteEditorV2, PanelCard, PhoneNumberInput, PhoneNumberInput2, PhoneNumberInput3, PhoneNumberInput4, PreviousDataBadge, ProgressBar, RadioButton, RegularDropdown, Row, SearchDropdownWithButton, Select, SelectUserWithButton, SelectV2, SideBarListView, SideBarListViewV2, Signature, SortDropdown, Spinner, SsnInput, Stepper, Tab, TabButton, TabList, TabPanel, Table, TagSelect as TagDropdown, TagSelect, Textarea, Timeline, Todos, TodosV2, Tooltip, TooltipWithChildren, Typho, Typhography, TyphographyFormGen, UrgentChallenges, useSchemaProcessor as UseSchemaProcessor, VersionDateDropdown, themeConfigs, usePagination, useSorting };
|
|
2430
|
+
export { BADGETYPE, Badge, BorderType, Breadcrumb, Button, ButtonGroup, ButtonGroupFormGen, ButtonGroupMultiSelect, ButtonGroupMultiSelectV2, ButtonGroupMultiSelectWithInputsFormGen, ButtonGroupWithInputs, ButtonGroupWithInputsFormGen, ButtonGroupWithMultiSelectFormGen, ButtonGroupWithUpload, ButtonV2, Card, Checkbox as CheckBox, CheckBoxComponent, ClickedAction, ComboBox, ConboboxV2 as ComboboxV2, DFHFormProvider as ComponentProvider, CustomFileInput, CustomDatePicker as DatePicker, DialogBox, DynamicDualInputTextGroupFormGen, FilterButton, FilterButtonGroup, Heading, HistoryDetails, HorizontalRule, Icon, IconInput, IconInputV2, IconV2, IconVariant, ImageInput, ImagePreview, IndeterminateCheckbox, InfoCard, Input, InputDatePicker, InputDatePickerV2, InputValidation, InputsGroup, Label, ListRow, LoadingSpinner, LockCodeInput, Logo, MarkdownContent, Message, MiniTimelineWrapper as MiniTimelineCard, Modal, MultiSelectFormGen, NavBar, NoteEditor, NoteEditorV2, PanelCard, PhoneNumberInput, PhoneNumberInput2, PhoneNumberInput3, PhoneNumberInput4, PreviousDataBadge, ProgressBar, RadioButton, RegularDropdown, Row, SearchDropdownWithButton, Select, SelectUserWithButton, SelectV2, SideBarListView, SideBarListViewV2, Signature, SortDropdown, Spinner, SsnInput, Stepper, Tab, TabButton, TabList, TabPanel, Table, TagSelect as TagDropdown, TagSelect, Textarea, Timeline, Todos, TodosV2, Tooltip, TooltipWithChildren, Typho, Typhography, TyphographyFormGen, UrgentChallenges, useSchemaProcessor as UseSchemaProcessor, VersionDateDropdown, themeConfigs, usePagination, useSorting };
|
|
2413
2431
|
export type { AccountPopoverMenuItem, BadgeColorVariant, BtnOptionDropdown, DropdownSearchProps, ISolutionvalues, InputType, ListMasterDataProps, LogoProps, MessageProps, NoteChildrenProps, NoteHistoryProps, NoteItemProps, NoteProps, OptionProps, TimelineEventProps, UrgentDataProps, VariantTypes };
|