dfh-ui-library 1.10.2 → 1.10.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/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/PreviousDataBadge/PreviousDataBadge.d.ts +6 -0
- package/dist/cjs/types/components/PreviousDataBadge/index.d.ts +1 -0
- package/dist/cjs/types/components/index.d.ts +1 -0
- package/dist/cjs/types/shared/models/components/base.model.d.ts +4 -0
- package/dist/cjs/types/shared/models/components/common.model.d.ts +16 -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/PreviousDataBadge/PreviousDataBadge.d.ts +6 -0
- package/dist/esm/types/components/PreviousDataBadge/index.d.ts +1 -0
- package/dist/esm/types/components/index.d.ts +1 -0
- package/dist/esm/types/shared/models/components/base.model.d.ts +4 -0
- package/dist/esm/types/shared/models/components/common.model.d.ts +16 -0
- package/dist/index.d.ts +18 -1
- package/package.json +106 -106
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './PreviousDataBadge';
|
|
@@ -42,3 +42,4 @@ export { default as Timeline } from "./Timeline";
|
|
|
42
42
|
export { default as HistoryDetails } from "./History";
|
|
43
43
|
export { default as NoteEditor } from "./NotesEditor";
|
|
44
44
|
export { default as VersionDateDropdown } from "./VersionDateDropdown";
|
|
45
|
+
export { default as PreviousDataBadge } from "./PreviousDataBadge";
|
|
@@ -243,6 +243,10 @@ export interface IFormGenInputProps {
|
|
|
243
243
|
selected?: selectedValue;
|
|
244
244
|
onSelect?: (selectedOption: selectedValue) => void;
|
|
245
245
|
viewMode?: boolean;
|
|
246
|
+
previousData?: {
|
|
247
|
+
answerLabel: string;
|
|
248
|
+
lastEditedDate?: string;
|
|
249
|
+
};
|
|
246
250
|
}
|
|
247
251
|
export interface ICheckboxProps {
|
|
248
252
|
onChange?: (checked: boolean) => void;
|
|
@@ -432,6 +432,10 @@ export interface ButtonGroupWithUploadProps extends InputGroupProps {
|
|
|
432
432
|
onFileChange?: (file: File | null) => void;
|
|
433
433
|
secondaryComponentsVisible?: boolean;
|
|
434
434
|
viewMode?: boolean;
|
|
435
|
+
previousData?: {
|
|
436
|
+
answerLabel: string;
|
|
437
|
+
lastEditedDate?: string;
|
|
438
|
+
};
|
|
435
439
|
}
|
|
436
440
|
export interface PaginationProps {
|
|
437
441
|
pageSize: number;
|
|
@@ -530,6 +534,10 @@ export interface FormGenButtonGroupProps extends FormGenInputGroupProps {
|
|
|
530
534
|
onFileChange?: (file: File | null) => void;
|
|
531
535
|
secondaryComponentsVisible?: boolean;
|
|
532
536
|
viewMode?: boolean;
|
|
537
|
+
previousData?: {
|
|
538
|
+
answerLabel: string;
|
|
539
|
+
lastEditedDate?: string;
|
|
540
|
+
};
|
|
533
541
|
}
|
|
534
542
|
export interface selectedValue {
|
|
535
543
|
value?: any;
|
|
@@ -552,6 +560,10 @@ export interface DyanamicDualInputProps {
|
|
|
552
560
|
onSelect: (selectedOption: selectedValue) => void;
|
|
553
561
|
selected?: selectedValue;
|
|
554
562
|
viewMode?: boolean;
|
|
563
|
+
previousData?: {
|
|
564
|
+
answerLabel: string;
|
|
565
|
+
lastEditedDate?: string;
|
|
566
|
+
};
|
|
555
567
|
}
|
|
556
568
|
export interface DyanamicDualInputObject {
|
|
557
569
|
username?: string;
|
|
@@ -571,6 +583,10 @@ export interface DyanamicDualInputBaseProps {
|
|
|
571
583
|
handleChange: (inputObj: string, value: string, index: number) => void;
|
|
572
584
|
currentIndex: number;
|
|
573
585
|
viewMode?: boolean;
|
|
586
|
+
previousData?: {
|
|
587
|
+
answerLabel: string;
|
|
588
|
+
lastEditedDate?: string;
|
|
589
|
+
};
|
|
574
590
|
}
|
|
575
591
|
export interface ICardInfoProps {
|
|
576
592
|
text?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -381,6 +381,10 @@ interface ButtonGroupWithUploadProps extends InputGroupProps {
|
|
|
381
381
|
onFileChange?: (file: File | null) => void;
|
|
382
382
|
secondaryComponentsVisible?: boolean;
|
|
383
383
|
viewMode?: boolean;
|
|
384
|
+
previousData?: {
|
|
385
|
+
answerLabel: string;
|
|
386
|
+
lastEditedDate?: string;
|
|
387
|
+
};
|
|
384
388
|
}
|
|
385
389
|
interface PaginationProps {
|
|
386
390
|
pageSize: number;
|
|
@@ -416,6 +420,10 @@ interface FormGenButtonGroupProps extends FormGenInputGroupProps {
|
|
|
416
420
|
onFileChange?: (file: File | null) => void;
|
|
417
421
|
secondaryComponentsVisible?: boolean;
|
|
418
422
|
viewMode?: boolean;
|
|
423
|
+
previousData?: {
|
|
424
|
+
answerLabel: string;
|
|
425
|
+
lastEditedDate?: string;
|
|
426
|
+
};
|
|
419
427
|
}
|
|
420
428
|
interface selectedValue {
|
|
421
429
|
value?: any;
|
|
@@ -438,6 +446,10 @@ interface DyanamicDualInputProps {
|
|
|
438
446
|
onSelect: (selectedOption: selectedValue) => void;
|
|
439
447
|
selected?: selectedValue;
|
|
440
448
|
viewMode?: boolean;
|
|
449
|
+
previousData?: {
|
|
450
|
+
answerLabel: string;
|
|
451
|
+
lastEditedDate?: string;
|
|
452
|
+
};
|
|
441
453
|
}
|
|
442
454
|
interface DyanamicDualInputObject {
|
|
443
455
|
username?: string;
|
|
@@ -1107,6 +1119,11 @@ declare const NoteEditor: React__default.FC<NoteComponentProps>;
|
|
|
1107
1119
|
|
|
1108
1120
|
declare const VersionDateDropdown: React__default.FC<VersionDropDownProps>;
|
|
1109
1121
|
|
|
1122
|
+
declare const PreviousDataBadge: React__default.FC<{
|
|
1123
|
+
answerLabel: string;
|
|
1124
|
+
lastEditedDate?: string;
|
|
1125
|
+
}>;
|
|
1126
|
+
|
|
1110
1127
|
interface UseSchemaProcessorProps {
|
|
1111
1128
|
schema: ISchema[];
|
|
1112
1129
|
externalSetComponents: (data: IComponent[]) => void;
|
|
@@ -1411,4 +1428,4 @@ declare const themeConfigs: {
|
|
|
1411
1428
|
plugins: any[];
|
|
1412
1429
|
};
|
|
1413
1430
|
|
|
1414
|
-
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, HistoryDetails, Icon, IconInput, ImageInput, ImagePreview, IndeterminateCheckbox, InfoCard, Input, type InputType, InputValidation, InputsGroup, Label, LoadingSpinner, Logo, type LogoProps, Message, type MessageProps, Modal, NavBar, NoteEditor, type NoteHistoryProps, type NoteItemProps, type OptionProps, PanelCard, PhoneNumberInput, ProgressBar, RadioButton, Row, SearchDropdownWithButton, Select, SelectUserWithButton, Stepper, Tab, TabList, TabPanel, Table, TagSelect as TagDropdown, TagSelect, Textarea, Timeline, type TimelineEventProps, Tooltip, Typhography, useSchemaProcessor as UseSchemaProcessor, type VariantTypes, VersionDateDropdown, themeConfigs, usePagination, useSorting };
|
|
1431
|
+
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, HistoryDetails, Icon, IconInput, ImageInput, ImagePreview, IndeterminateCheckbox, InfoCard, Input, type InputType, InputValidation, InputsGroup, Label, LoadingSpinner, Logo, type LogoProps, Message, type MessageProps, Modal, NavBar, NoteEditor, type NoteHistoryProps, type NoteItemProps, type OptionProps, PanelCard, PhoneNumberInput, PreviousDataBadge, ProgressBar, RadioButton, Row, SearchDropdownWithButton, Select, SelectUserWithButton, Stepper, Tab, TabList, TabPanel, Table, TagSelect as TagDropdown, TagSelect, Textarea, Timeline, type TimelineEventProps, Tooltip, Typhography, useSchemaProcessor as UseSchemaProcessor, type VariantTypes, VersionDateDropdown, themeConfigs, usePagination, useSorting };
|
package/package.json
CHANGED
|
@@ -1,106 +1,106 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "dfh-ui-library",
|
|
3
|
-
"version": "1.10.
|
|
4
|
-
"description": "",
|
|
5
|
-
"scripts": {
|
|
6
|
-
"rollup": "rollup -c --bundleConfigAsCjs --environment NODE_ENV:production",
|
|
7
|
-
"storybook": "storybook dev -p 6006",
|
|
8
|
-
"build-storybook": "storybook build",
|
|
9
|
-
"test": "jest"
|
|
10
|
-
},
|
|
11
|
-
"author": "DFH dev",
|
|
12
|
-
"license": "ISC",
|
|
13
|
-
"dependencies": {
|
|
14
|
-
"@babel/preset-env": "^7.23.3",
|
|
15
|
-
"@babel/preset-react": "^7.23.3",
|
|
16
|
-
"@babel/preset-typescript": "^7.23.3",
|
|
17
|
-
"@faker-js/faker": "^8.3.1",
|
|
18
|
-
"@fontsource/inter": "^5.0.16",
|
|
19
|
-
"@rollup/plugin-sucrase": "^5.0.2",
|
|
20
|
-
"@rollup/plugin-terser": "^0.4.4",
|
|
21
|
-
"@tailwindcss/forms": "^0.5.7",
|
|
22
|
-
"@tanstack/react-table": "^8.11.3",
|
|
23
|
-
"@types/react": "^18.2.37",
|
|
24
|
-
"autoprefixer": "^10.4.16",
|
|
25
|
-
"classnames": "^2.3.2",
|
|
26
|
-
"formik": "^2.4.5",
|
|
27
|
-
"lodash": "^4.17.21",
|
|
28
|
-
"moment": "^2.29.4",
|
|
29
|
-
"react": "^18.2.0",
|
|
30
|
-
"react-datepicker": "^4.24.0",
|
|
31
|
-
"react-dom": "^18.2.0",
|
|
32
|
-
"react-input-mask": "^3.0.0-alpha.2",
|
|
33
|
-
"react-phone-number-input": "^3.3.7",
|
|
34
|
-
"react-select": "^5.8.0",
|
|
35
|
-
"react-tooltip": "^5.26.3",
|
|
36
|
-
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
37
|
-
"rollup-plugin-scss": "^4.0.0",
|
|
38
|
-
"tailwindcss": "^3.3.5",
|
|
39
|
-
"tsconfig-paths-webpack-plugin": "^4.1.0",
|
|
40
|
-
"tslib": "^2.6.2",
|
|
41
|
-
"typescript": "^5.2.2"
|
|
42
|
-
},
|
|
43
|
-
"devDependencies": {
|
|
44
|
-
"@rollup/plugin-commonjs": "^25.0.7",
|
|
45
|
-
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
46
|
-
"@rollup/plugin-typescript": "^11.1.5",
|
|
47
|
-
"@storybook/addon-actions": "^7.6.3",
|
|
48
|
-
"@storybook/addon-docs": "^7.5.3",
|
|
49
|
-
"@storybook/addon-essentials": "^7.5.3",
|
|
50
|
-
"@storybook/addon-interactions": "^7.5.3",
|
|
51
|
-
"@storybook/addon-links": "^7.5.3",
|
|
52
|
-
"@storybook/addon-onboarding": "^1.0.8",
|
|
53
|
-
"@storybook/addon-postcss": "^2.0.0",
|
|
54
|
-
"@storybook/blocks": "^7.5.3",
|
|
55
|
-
"@storybook/cli": "^7.5.3",
|
|
56
|
-
"@storybook/react": "^7.5.3",
|
|
57
|
-
"@storybook/react-webpack5": "^7.5.3",
|
|
58
|
-
"@storybook/testing-library": "^0.2.2",
|
|
59
|
-
"@storybook/theming": "^7.5.3",
|
|
60
|
-
"@testing-library/jest-dom": "^6.1.4",
|
|
61
|
-
"@testing-library/react": "^14.1.2",
|
|
62
|
-
"@testing-library/user-event": "^14.5.1",
|
|
63
|
-
"@types/jest": "^29.5.9",
|
|
64
|
-
"@types/react-datepicker": "^4.19.4",
|
|
65
|
-
"@typescript-eslint/eslint-plugin": "^6.12.0",
|
|
66
|
-
"@typescript-eslint/parser": "^6.12.0",
|
|
67
|
-
"autoprefixer": "^10.4.16",
|
|
68
|
-
"cssnano": "^6.0.1",
|
|
69
|
-
"eslint": "^8.54.0",
|
|
70
|
-
"eslint-plugin-react": "^7.33.2",
|
|
71
|
-
"jest": "^29.7.0",
|
|
72
|
-
"jest-environment-jsdom": "^29.7.0",
|
|
73
|
-
"postcss": "^8.4.31",
|
|
74
|
-
"postcss-cssnext": "^3.1.1",
|
|
75
|
-
"postcss-import": "^15.1.0",
|
|
76
|
-
"postcss-loader": "^7.3.3",
|
|
77
|
-
"rollup": "^4.5.0",
|
|
78
|
-
"rollup-plugin-css-only": "^4.5.2",
|
|
79
|
-
"rollup-plugin-dts": "^6.1.0",
|
|
80
|
-
"rollup-plugin-postcss": "^4.0.2",
|
|
81
|
-
"storybook": "^7.5.3",
|
|
82
|
-
"sugarss": "^4.0.1",
|
|
83
|
-
"vite": "^5.0.0"
|
|
84
|
-
},
|
|
85
|
-
"peerDependencies": {
|
|
86
|
-
"@tailwindcss/forms": "^0.5.7",
|
|
87
|
-
"autoprefixer": "^10.4.16",
|
|
88
|
-
"classnames": "^2.3.2",
|
|
89
|
-
"cssnano": "^6.0.1",
|
|
90
|
-
"lodash": "^4.17.21",
|
|
91
|
-
"moment": "^2.29.4",
|
|
92
|
-
"postcss": "^8.4.31",
|
|
93
|
-
"postcss-cssnext": "^3.1.1",
|
|
94
|
-
"postcss-import": "^15.1.0",
|
|
95
|
-
"postcss-loader": "^7.3.3",
|
|
96
|
-
"react": "^18.2.0",
|
|
97
|
-
"react-dom": "^18.2.0",
|
|
98
|
-
"tailwindcss": "^3.3.5"
|
|
99
|
-
},
|
|
100
|
-
"main": "dist/cjs/index.js",
|
|
101
|
-
"module": "dist/esm/index.js",
|
|
102
|
-
"files": [
|
|
103
|
-
"dist"
|
|
104
|
-
],
|
|
105
|
-
"types": "dist/index.d.ts"
|
|
106
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "dfh-ui-library",
|
|
3
|
+
"version": " 1.10.3",
|
|
4
|
+
"description": "",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"rollup": "rollup -c --bundleConfigAsCjs --environment NODE_ENV:production",
|
|
7
|
+
"storybook": "storybook dev -p 6006",
|
|
8
|
+
"build-storybook": "storybook build",
|
|
9
|
+
"test": "jest"
|
|
10
|
+
},
|
|
11
|
+
"author": "DFH dev",
|
|
12
|
+
"license": "ISC",
|
|
13
|
+
"dependencies": {
|
|
14
|
+
"@babel/preset-env": "^7.23.3",
|
|
15
|
+
"@babel/preset-react": "^7.23.3",
|
|
16
|
+
"@babel/preset-typescript": "^7.23.3",
|
|
17
|
+
"@faker-js/faker": "^8.3.1",
|
|
18
|
+
"@fontsource/inter": "^5.0.16",
|
|
19
|
+
"@rollup/plugin-sucrase": "^5.0.2",
|
|
20
|
+
"@rollup/plugin-terser": "^0.4.4",
|
|
21
|
+
"@tailwindcss/forms": "^0.5.7",
|
|
22
|
+
"@tanstack/react-table": "^8.11.3",
|
|
23
|
+
"@types/react": "^18.2.37",
|
|
24
|
+
"autoprefixer": "^10.4.16",
|
|
25
|
+
"classnames": "^2.3.2",
|
|
26
|
+
"formik": "^2.4.5",
|
|
27
|
+
"lodash": "^4.17.21",
|
|
28
|
+
"moment": "^2.29.4",
|
|
29
|
+
"react": "^18.2.0",
|
|
30
|
+
"react-datepicker": "^4.24.0",
|
|
31
|
+
"react-dom": "^18.2.0",
|
|
32
|
+
"react-input-mask": "^3.0.0-alpha.2",
|
|
33
|
+
"react-phone-number-input": "^3.3.7",
|
|
34
|
+
"react-select": "^5.8.0",
|
|
35
|
+
"react-tooltip": "^5.26.3",
|
|
36
|
+
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
37
|
+
"rollup-plugin-scss": "^4.0.0",
|
|
38
|
+
"tailwindcss": "^3.3.5",
|
|
39
|
+
"tsconfig-paths-webpack-plugin": "^4.1.0",
|
|
40
|
+
"tslib": "^2.6.2",
|
|
41
|
+
"typescript": "^5.2.2"
|
|
42
|
+
},
|
|
43
|
+
"devDependencies": {
|
|
44
|
+
"@rollup/plugin-commonjs": "^25.0.7",
|
|
45
|
+
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
46
|
+
"@rollup/plugin-typescript": "^11.1.5",
|
|
47
|
+
"@storybook/addon-actions": "^7.6.3",
|
|
48
|
+
"@storybook/addon-docs": "^7.5.3",
|
|
49
|
+
"@storybook/addon-essentials": "^7.5.3",
|
|
50
|
+
"@storybook/addon-interactions": "^7.5.3",
|
|
51
|
+
"@storybook/addon-links": "^7.5.3",
|
|
52
|
+
"@storybook/addon-onboarding": "^1.0.8",
|
|
53
|
+
"@storybook/addon-postcss": "^2.0.0",
|
|
54
|
+
"@storybook/blocks": "^7.5.3",
|
|
55
|
+
"@storybook/cli": "^7.5.3",
|
|
56
|
+
"@storybook/react": "^7.5.3",
|
|
57
|
+
"@storybook/react-webpack5": "^7.5.3",
|
|
58
|
+
"@storybook/testing-library": "^0.2.2",
|
|
59
|
+
"@storybook/theming": "^7.5.3",
|
|
60
|
+
"@testing-library/jest-dom": "^6.1.4",
|
|
61
|
+
"@testing-library/react": "^14.1.2",
|
|
62
|
+
"@testing-library/user-event": "^14.5.1",
|
|
63
|
+
"@types/jest": "^29.5.9",
|
|
64
|
+
"@types/react-datepicker": "^4.19.4",
|
|
65
|
+
"@typescript-eslint/eslint-plugin": "^6.12.0",
|
|
66
|
+
"@typescript-eslint/parser": "^6.12.0",
|
|
67
|
+
"autoprefixer": "^10.4.16",
|
|
68
|
+
"cssnano": "^6.0.1",
|
|
69
|
+
"eslint": "^8.54.0",
|
|
70
|
+
"eslint-plugin-react": "^7.33.2",
|
|
71
|
+
"jest": "^29.7.0",
|
|
72
|
+
"jest-environment-jsdom": "^29.7.0",
|
|
73
|
+
"postcss": "^8.4.31",
|
|
74
|
+
"postcss-cssnext": "^3.1.1",
|
|
75
|
+
"postcss-import": "^15.1.0",
|
|
76
|
+
"postcss-loader": "^7.3.3",
|
|
77
|
+
"rollup": "^4.5.0",
|
|
78
|
+
"rollup-plugin-css-only": "^4.5.2",
|
|
79
|
+
"rollup-plugin-dts": "^6.1.0",
|
|
80
|
+
"rollup-plugin-postcss": "^4.0.2",
|
|
81
|
+
"storybook": "^7.5.3",
|
|
82
|
+
"sugarss": "^4.0.1",
|
|
83
|
+
"vite": "^5.0.0"
|
|
84
|
+
},
|
|
85
|
+
"peerDependencies": {
|
|
86
|
+
"@tailwindcss/forms": "^0.5.7",
|
|
87
|
+
"autoprefixer": "^10.4.16",
|
|
88
|
+
"classnames": "^2.3.2",
|
|
89
|
+
"cssnano": "^6.0.1",
|
|
90
|
+
"lodash": "^4.17.21",
|
|
91
|
+
"moment": "^2.29.4",
|
|
92
|
+
"postcss": "^8.4.31",
|
|
93
|
+
"postcss-cssnext": "^3.1.1",
|
|
94
|
+
"postcss-import": "^15.1.0",
|
|
95
|
+
"postcss-loader": "^7.3.3",
|
|
96
|
+
"react": "^18.2.0",
|
|
97
|
+
"react-dom": "^18.2.0",
|
|
98
|
+
"tailwindcss": "^3.3.5"
|
|
99
|
+
},
|
|
100
|
+
"main": "dist/cjs/index.js",
|
|
101
|
+
"module": "dist/esm/index.js",
|
|
102
|
+
"files": [
|
|
103
|
+
"dist"
|
|
104
|
+
],
|
|
105
|
+
"types": "dist/index.d.ts"
|
|
106
|
+
}
|