dfh-ui-library 1.13.48 → 1.13.50
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/README.md +118 -118
- 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/Badge/Badge.d.ts +2 -2
- package/dist/cjs/types/components/ButtonGroupWithUpload/ButtonGroupWithUpload.d.ts +2 -2
- package/dist/cjs/types/components/ComboBox/Combobox.d.ts +46 -0
- package/dist/cjs/types/components/CustomFileInput/CustomFileInput.d.ts +2 -2
- package/dist/cjs/types/components/Datepicker/DatePicker.d.ts +3 -3
- package/dist/cjs/types/components/FormElements/IconInput/IconInput.d.ts +2 -2
- package/dist/cjs/types/components/Gird/Grid.d.ts +2 -2
- package/dist/cjs/types/components/Gird/GridCheckBox.d.ts +2 -2
- package/dist/cjs/types/components/InputDatepicker/InputDatePicker.d.ts +3 -3
- package/dist/cjs/types/components/NotesEditor/NoteEditor.d.ts +2 -2
- package/dist/cjs/types/components/Signature/Signature.d.ts +2 -2
- package/dist/cjs/types/components/Timeline/TimeLineCards.d.ts +3 -3
- package/dist/cjs/types/index.d.ts +10 -10
- 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/Badge/Badge.d.ts +2 -2
- package/dist/esm/types/components/ButtonGroupWithUpload/ButtonGroupWithUpload.d.ts +2 -2
- package/dist/esm/types/components/ComboBox/Combobox.d.ts +46 -0
- package/dist/esm/types/components/CustomFileInput/CustomFileInput.d.ts +2 -2
- package/dist/esm/types/components/Datepicker/DatePicker.d.ts +3 -3
- package/dist/esm/types/components/FormElements/IconInput/IconInput.d.ts +2 -2
- package/dist/esm/types/components/Gird/Grid.d.ts +2 -2
- package/dist/esm/types/components/Gird/GridCheckBox.d.ts +2 -2
- package/dist/esm/types/components/InputDatepicker/InputDatePicker.d.ts +3 -3
- package/dist/esm/types/components/NotesEditor/NoteEditor.d.ts +2 -2
- package/dist/esm/types/components/Signature/Signature.d.ts +2 -2
- package/dist/esm/types/components/Timeline/TimeLineCards.d.ts +3 -3
- package/dist/esm/types/index.d.ts +10 -10
- package/package.json +119 -114
@@ -1,4 +1,4 @@
|
|
1
|
-
import React from
|
2
|
-
import { IBadgeProps } from
|
1
|
+
import React from 'react';
|
2
|
+
import { IBadgeProps } from '../../shared/models/components/common.model';
|
3
3
|
declare const Badge: React.FC<IBadgeProps>;
|
4
4
|
export default Badge;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import React from
|
2
|
-
import { ButtonGroupWithUploadProps } from
|
1
|
+
import React from 'react';
|
2
|
+
import { ButtonGroupWithUploadProps } from '../../shared/models/components/common.model';
|
3
3
|
declare const ButtonGroupWithUpload: React.FC<ButtonGroupWithUploadProps>;
|
4
4
|
export default ButtonGroupWithUpload;
|
@@ -0,0 +1,46 @@
|
|
1
|
+
import { FC } from "react";
|
2
|
+
import type { Tag as ReactTagInputTag } from 'react-tag-input';
|
3
|
+
import { LABELTYPE } from "../../shared/models/components/base.model";
|
4
|
+
interface ComboBoxProps {
|
5
|
+
suggestions?: string[];
|
6
|
+
onTagsChange?: (tags: ReactTagInputTag[]) => void;
|
7
|
+
initialTags?: ReactTagInputTag[];
|
8
|
+
debounceMs?: number;
|
9
|
+
onSearch?: (searchTerm: string) => void;
|
10
|
+
maxTags?: number;
|
11
|
+
label?: string;
|
12
|
+
placeholder?: string;
|
13
|
+
error?: string;
|
14
|
+
isBorderedError?: boolean;
|
15
|
+
readOnly?: boolean;
|
16
|
+
inputVariant?: "default" | "large" | "dynamic" | "uploadinput" | "small" | "noborder";
|
17
|
+
additionalClasses?: string;
|
18
|
+
isAdditionalErrorInput?: boolean;
|
19
|
+
additionalErrorClasses?: string;
|
20
|
+
labelType?: LABELTYPE;
|
21
|
+
enableToolTip?: boolean;
|
22
|
+
tooltipProps?: {
|
23
|
+
tooltipIconClasses?: string;
|
24
|
+
tooltipHeading?: string;
|
25
|
+
tooltipContent?: string;
|
26
|
+
tooltipClick?: () => void;
|
27
|
+
showTooltip?: boolean;
|
28
|
+
tooltipIcon?: string;
|
29
|
+
color?: string;
|
30
|
+
};
|
31
|
+
suffixed?: string;
|
32
|
+
viewMode?: boolean;
|
33
|
+
isRequired?: boolean;
|
34
|
+
wrapperClass?: string;
|
35
|
+
type?: string;
|
36
|
+
onlyLabel?: boolean;
|
37
|
+
labelSpanClasses?: string;
|
38
|
+
labelName?: string;
|
39
|
+
value?: string;
|
40
|
+
isIcon?: boolean;
|
41
|
+
labelClasses?: string;
|
42
|
+
inputFocus?: () => void;
|
43
|
+
refProps?: any;
|
44
|
+
}
|
45
|
+
declare const ComboBox: FC<ComboBoxProps>;
|
46
|
+
export default ComboBox;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import React from
|
2
|
-
import { CustomFileInputProps } from
|
1
|
+
import React from 'react';
|
2
|
+
import { CustomFileInputProps } from '../../shared/models/components/common.model';
|
3
3
|
declare const CustomFileInput: React.FC<CustomFileInputProps>;
|
4
4
|
export default CustomFileInput;
|
@@ -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 CustomDatePicker: React.FC<CustomDatePickerProps>;
|
5
5
|
export default CustomDatePicker;
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { FC } from
|
2
|
-
import { IHookFormsInputProps } from
|
1
|
+
import { FC } from 'react';
|
2
|
+
import { IHookFormsInputProps } from '../../../shared/models/components/base.model';
|
3
3
|
/**
|
4
4
|
* Primary UI component for user interaction
|
5
5
|
*/
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import React from
|
2
|
-
import { TableProps } from
|
1
|
+
import React from 'react';
|
2
|
+
import { TableProps } from '../../shared/models/components/common.model';
|
3
3
|
export declare function Table({ data, columns, sorting, onSortingChange, pagination, onPaginationChange, totalRecords, isManualPagination, // true for server-side pagination
|
4
4
|
isManualSorting, rowClick, containerHeightRemoveInPixel, setRowSelection, isLoading, }: TableProps, key?: any): React.JSX.Element;
|
@@ -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 InputDatePicker: React.FC<CustomDatePickerProps>;
|
5
5
|
export default InputDatePicker;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import React from
|
2
|
-
import { NoteComponentProps } from
|
1
|
+
import React from 'react';
|
2
|
+
import { NoteComponentProps } from '../../shared/models/components/common.model';
|
3
3
|
declare const NoteEditor: React.FC<NoteComponentProps>;
|
4
4
|
export default NoteEditor;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import React from
|
2
|
-
import { SignatureProps } from
|
1
|
+
import React from 'react';
|
2
|
+
import { SignatureProps } from '../../shared/models/components/common.model';
|
3
3
|
declare const Signature: React.FC<SignatureProps>;
|
4
4
|
export default Signature;
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import React from
|
2
|
-
import { ISolutionvalues, NoteProps, TimelineEventProps } from
|
3
|
-
import { ITodoToggleRequestParams } from
|
1
|
+
import React from 'react';
|
2
|
+
import { ISolutionvalues, NoteProps, TimelineEventProps } from '../../shared/models/components/common.model';
|
3
|
+
import { ITodoToggleRequestParams } from '../SideBarListView/todos';
|
4
4
|
export declare const getTimeLineCards: (eventData: TimelineEventProps, setShowCompleteNote: (isShow: boolean) => void, showCompleteNote: boolean, handleEditItemTimeLine: any, navigateAction?: (timeLineNavReq?: ISolutionvalues, type?: string) => void, surveyId?: string, showNote?: boolean, setShowNote?: (isSet: boolean) => void, enableEdit?: boolean, toggleEdit?: (isShow: boolean) => void, viewNoteHistory?: any, lastModified?: string, saveNoteValues?: any, setEnableEdit?: (isEnable: boolean) => void, surveyDate?: string, type?: string[], showAll?: boolean, isChallengeTimeline?: boolean, handleCopyCurrentNote?: (note: NoteProps) => void) => React.JSX.Element;
|
5
5
|
export declare const NoteCard: React.FC<{
|
6
6
|
eventData?: TimelineEventProps;
|
@@ -1,10 +1,10 @@
|
|
1
|
-
import
|
2
|
-
export * from
|
3
|
-
export * from
|
4
|
-
export { VariantTypes, BorderType, LogoProps, } from
|
5
|
-
export { DropdownSearchProps, ClickedAction, TimelineEventProps, ListMasterDataProps, BtnOptionDropdown, BADGETYPE, OptionProps, NoteItemProps, NoteChildrenProps, NoteProps, UrgentDataProps, MessageProps, InputType, BadgeColorVariant, ISolutionvalues, AccountPopoverMenuItem } from
|
6
|
-
export { ColumnDef, SortingState } from
|
7
|
-
export { usePagination } from
|
8
|
-
export { useSorting } from
|
9
|
-
export { themeConfigs } from
|
10
|
-
export { NoteHistoryProps } from
|
1
|
+
import './index.css';
|
2
|
+
export * from './components';
|
3
|
+
export * from './hooks';
|
4
|
+
export { VariantTypes, BorderType, LogoProps, } from './shared/models/components/base.model';
|
5
|
+
export { DropdownSearchProps, ClickedAction, TimelineEventProps, ListMasterDataProps, BtnOptionDropdown, BADGETYPE, OptionProps, NoteItemProps, NoteChildrenProps, NoteProps, UrgentDataProps, MessageProps, InputType, BadgeColorVariant, ISolutionvalues, AccountPopoverMenuItem, } from './shared/models/components/common.model';
|
6
|
+
export { ColumnDef, SortingState } from '@tanstack/react-table';
|
7
|
+
export { usePagination } from './hooks/usePagination';
|
8
|
+
export { useSorting } from './hooks/useSorting';
|
9
|
+
export { themeConfigs } from './shared/configs/themeConfig';
|
10
|
+
export { NoteHistoryProps } from './shared/models/components/common.model';
|
package/package.json
CHANGED
@@ -1,114 +1,119 @@
|
|
1
|
-
{
|
2
|
-
"name": "dfh-ui-library",
|
3
|
-
"version": "1.13.
|
4
|
-
"description": "",
|
5
|
-
"scripts": {
|
6
|
-
"build": "rollup -c --bundleConfigAsCjs --environment NODE_ENV:production",
|
7
|
-
"storybook": "storybook dev -p 6006",
|
8
|
-
"build-storybook": "storybook build",
|
9
|
-
"test": "jest",
|
10
|
-
"
|
11
|
-
|
12
|
-
|
13
|
-
"
|
14
|
-
"
|
15
|
-
|
16
|
-
"@babel/preset-
|
17
|
-
"@babel/preset-
|
18
|
-
"@
|
19
|
-
"@
|
20
|
-
"@
|
21
|
-
"@rollup/plugin-
|
22
|
-
"@
|
23
|
-
"@
|
24
|
-
"@
|
25
|
-
"
|
26
|
-
"
|
27
|
-
"
|
28
|
-
"
|
29
|
-
"
|
30
|
-
"
|
31
|
-
"
|
32
|
-
"
|
33
|
-
"react
|
34
|
-
"react-
|
35
|
-
"react-
|
36
|
-
"react-
|
37
|
-
"react-
|
38
|
-
"react-
|
39
|
-
"
|
40
|
-
"
|
41
|
-
"
|
42
|
-
"
|
43
|
-
"
|
44
|
-
"
|
45
|
-
"
|
46
|
-
"
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
"@rollup/plugin-
|
52
|
-
"@
|
53
|
-
"@
|
54
|
-
"@storybook/addon-
|
55
|
-
"@storybook/addon-
|
56
|
-
"@storybook/addon-
|
57
|
-
"@storybook/addon-
|
58
|
-
"@storybook/addon-
|
59
|
-
"@storybook/
|
60
|
-
"@storybook/
|
61
|
-
"@storybook/
|
62
|
-
"@storybook/
|
63
|
-
"@storybook/
|
64
|
-
"@storybook/
|
65
|
-
"@testing-library
|
66
|
-
"@
|
67
|
-
"@testing-library/
|
68
|
-
"@
|
69
|
-
"@
|
70
|
-
"@types/
|
71
|
-
"@types/
|
72
|
-
"@
|
73
|
-
"@
|
74
|
-
"
|
75
|
-
"
|
76
|
-
"
|
77
|
-
"
|
78
|
-
"
|
79
|
-
"
|
80
|
-
"
|
81
|
-
"
|
82
|
-
"
|
83
|
-
"
|
84
|
-
"
|
85
|
-
"
|
86
|
-
"
|
87
|
-
"
|
88
|
-
"
|
89
|
-
"
|
90
|
-
"
|
91
|
-
"
|
92
|
-
|
93
|
-
|
94
|
-
"
|
95
|
-
"
|
96
|
-
"
|
97
|
-
|
98
|
-
|
99
|
-
"
|
100
|
-
"
|
101
|
-
"
|
102
|
-
"
|
103
|
-
"
|
104
|
-
"
|
105
|
-
"
|
106
|
-
"
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
"
|
112
|
-
|
113
|
-
"
|
114
|
-
|
1
|
+
{
|
2
|
+
"name": "dfh-ui-library",
|
3
|
+
"version": "1.13.50",
|
4
|
+
"description": "",
|
5
|
+
"scripts": {
|
6
|
+
"build": "rollup -c --bundleConfigAsCjs --environment NODE_ENV:production",
|
7
|
+
"storybook": "storybook dev -p 6006",
|
8
|
+
"build-storybook": "storybook build",
|
9
|
+
"test": "jest",
|
10
|
+
"lint": "eslint . --ext ts,tsx,js,jsx --quiet",
|
11
|
+
"chromatic": "npx chromatic --auto-accept-changes"
|
12
|
+
},
|
13
|
+
"author": "DFH dev",
|
14
|
+
"license": "ISC",
|
15
|
+
"dependencies": {
|
16
|
+
"@babel/preset-env": "^7.23.3",
|
17
|
+
"@babel/preset-react": "^7.23.3",
|
18
|
+
"@babel/preset-typescript": "^7.23.3",
|
19
|
+
"@faker-js/faker": "^8.3.1",
|
20
|
+
"@fontsource/inter": "^5.0.16",
|
21
|
+
"@rollup/plugin-sucrase": "^5.0.2",
|
22
|
+
"@rollup/plugin-terser": "^0.4.4",
|
23
|
+
"@tailwindcss/forms": "^0.5.7",
|
24
|
+
"@tanstack/react-table": "^8.11.3",
|
25
|
+
"@types/react": "^18.2.37",
|
26
|
+
"autoprefixer": "^10.4.16",
|
27
|
+
"classnames": "^2.3.2",
|
28
|
+
"dfh-form-generator": "^1.2.138",
|
29
|
+
"dompurify": "^3.1.6",
|
30
|
+
"formik": "^2.4.5",
|
31
|
+
"lodash": "^4.17.21",
|
32
|
+
"moment": "^2.29.4",
|
33
|
+
"react": "^18.2.0",
|
34
|
+
"react-datepicker": "^4.24.0",
|
35
|
+
"react-dom": "^18.2.0",
|
36
|
+
"react-input-mask": "^3.0.0-alpha.2",
|
37
|
+
"react-phone-number-input": "^3.4.11",
|
38
|
+
"react-select": "^5.8.0",
|
39
|
+
"react-tag-input": "^6.10.6",
|
40
|
+
"react-tooltip": "^5.26.3",
|
41
|
+
"rollup-plugin-peer-deps-external": "^2.2.4",
|
42
|
+
"rollup-plugin-scss": "^4.0.0",
|
43
|
+
"signature_pad": "^4.2.0",
|
44
|
+
"tailwind-merge": "^2.6.0",
|
45
|
+
"tailwindcss": "^3.3.5",
|
46
|
+
"tsconfig-paths-webpack-plugin": "^4.1.0",
|
47
|
+
"tslib": "^2.6.2",
|
48
|
+
"typescript": "^5.2.2"
|
49
|
+
},
|
50
|
+
"devDependencies": {
|
51
|
+
"@rollup/plugin-commonjs": "^25.0.7",
|
52
|
+
"@rollup/plugin-node-resolve": "^15.2.3",
|
53
|
+
"@rollup/plugin-typescript": "^11.1.5",
|
54
|
+
"@storybook/addon-actions": "^7.6.3",
|
55
|
+
"@storybook/addon-docs": "^7.5.3",
|
56
|
+
"@storybook/addon-essentials": "^7.5.3",
|
57
|
+
"@storybook/addon-interactions": "^7.5.3",
|
58
|
+
"@storybook/addon-links": "^7.5.3",
|
59
|
+
"@storybook/addon-onboarding": "^1.0.8",
|
60
|
+
"@storybook/addon-postcss": "^2.0.0",
|
61
|
+
"@storybook/blocks": "^7.5.3",
|
62
|
+
"@storybook/cli": "^7.5.3",
|
63
|
+
"@storybook/react": "^7.5.3",
|
64
|
+
"@storybook/react-webpack5": "^7.5.3",
|
65
|
+
"@storybook/testing-library": "^0.2.2",
|
66
|
+
"@storybook/theming": "^7.5.3",
|
67
|
+
"@testing-library/jest-dom": "^6.1.4",
|
68
|
+
"@testing-library/react": "^14.1.2",
|
69
|
+
"@testing-library/user-event": "^14.5.1",
|
70
|
+
"@types/dompurify": "^3.0.5",
|
71
|
+
"@types/jest": "^29.5.9",
|
72
|
+
"@types/react-datepicker": "^4.19.4",
|
73
|
+
"@types/signature_pad": "^2.3.6",
|
74
|
+
"@typescript-eslint/eslint-plugin": "^6.21.0",
|
75
|
+
"@typescript-eslint/parser": "^6.21.0",
|
76
|
+
"autoprefixer": "^10.4.16",
|
77
|
+
"chromatic": "^11.28.0",
|
78
|
+
"cssnano": "^6.0.1",
|
79
|
+
"eslint": "^8.57.1",
|
80
|
+
"eslint-config-prettier": "^10.1.2",
|
81
|
+
"eslint-plugin-prettier": "^5.2.6",
|
82
|
+
"eslint-plugin-react": "^7.33.2",
|
83
|
+
"eslint-plugin-react-hooks": "^5.2.0",
|
84
|
+
"jest": "^29.7.0",
|
85
|
+
"jest-environment-jsdom": "^29.7.0",
|
86
|
+
"postcss": "^8.4.31",
|
87
|
+
"postcss-cssnext": "^3.1.1",
|
88
|
+
"postcss-import": "^15.1.0",
|
89
|
+
"postcss-loader": "^7.3.3",
|
90
|
+
"rollup": "^4.5.0",
|
91
|
+
"rollup-plugin-css-only": "^4.5.2",
|
92
|
+
"rollup-plugin-dts": "^6.1.0",
|
93
|
+
"rollup-plugin-postcss": "^4.0.2",
|
94
|
+
"storybook": "^7.5.3",
|
95
|
+
"sugarss": "^4.0.1",
|
96
|
+
"vite": "^5.0.0"
|
97
|
+
},
|
98
|
+
"peerDependencies": {
|
99
|
+
"@tailwindcss/forms": "^0.5.7",
|
100
|
+
"autoprefixer": "^10.4.16",
|
101
|
+
"classnames": "^2.3.2",
|
102
|
+
"cssnano": "^6.0.1",
|
103
|
+
"lodash": "^4.17.21",
|
104
|
+
"moment": "^2.29.4",
|
105
|
+
"postcss": "^8.4.31",
|
106
|
+
"postcss-cssnext": "^3.1.1",
|
107
|
+
"postcss-import": "^15.1.0",
|
108
|
+
"postcss-loader": "^7.3.3",
|
109
|
+
"react": "^18.2.0",
|
110
|
+
"react-dom": "^18.2.0",
|
111
|
+
"tailwindcss": "^3.3.5"
|
112
|
+
},
|
113
|
+
"main": "dist/cjs/index.js",
|
114
|
+
"module": "dist/esm/index.js",
|
115
|
+
"files": [
|
116
|
+
"dist"
|
117
|
+
],
|
118
|
+
"types": "dist/index.d.ts"
|
119
|
+
}
|