dfh-ui-library 1.12.772 → 1.12.774

Sign up to get free protection for your applications and to get access to all the features.
@@ -174,6 +174,7 @@ export interface IHookFormsInputProps extends InputHTMLAttributes<HTMLInputEleme
174
174
  ref?: any;
175
175
  inputFocus?: any;
176
176
  refProps?: any;
177
+ isRequired?: boolean;
177
178
  }
178
179
  export interface IFormGenInputProps {
179
180
  /**
@@ -259,6 +260,7 @@ export interface IFormGenInputProps {
259
260
  answerLabel: string;
260
261
  lastEditedDate?: string;
261
262
  };
263
+ isRequired?: boolean;
262
264
  }
263
265
  export interface IFormGenInputProps {
264
266
  /**
@@ -384,6 +386,7 @@ export interface ILabelProps {
384
386
  */
385
387
  labelSpanClasses?: string;
386
388
  secondaryText?: string;
389
+ isRequired?: boolean;
387
390
  }
388
391
  export interface IRadioProps extends InputHTMLAttributes<HTMLInputElement> {
389
392
  /**
@@ -453,6 +456,7 @@ export interface ISelectProps extends SelectHTMLAttributes<HTMLSelectElement> {
453
456
  iconClasses?: string;
454
457
  isIcon?: boolean;
455
458
  secondaryText?: string;
459
+ isRequired?: boolean;
456
460
  }
457
461
  export interface IMessageProps extends IChildrenProp, IAdditionalClassesProp, IOnClickEventProps {
458
462
  /**
@@ -518,6 +522,7 @@ export interface IInputProps extends TextareaHTMLAttributes<HTMLTextAreaElement>
518
522
  isEnableTextCount?: boolean;
519
523
  value?: string | undefined;
520
524
  setValue?: (value: string) => void;
525
+ isRequired?: boolean;
521
526
  }
522
527
  export interface ICardProps {
523
528
  /**
@@ -204,12 +204,14 @@ export interface ImageInputProps {
204
204
  additionalErrorClasses?: string;
205
205
  readOnly?: boolean;
206
206
  value?: string;
207
+ isRequired?: boolean;
207
208
  }
208
209
  export interface CustomDatePickerProps {
209
210
  selectedDate?: Date | null;
210
211
  onChange?: (date: Date | null) => void;
211
212
  onSelect?: (date: Date | null) => void;
212
213
  label?: string;
214
+ isRequired?: boolean;
213
215
  placeHolder?: string;
214
216
  error?: string;
215
217
  isAdditionalErrorInput?: boolean;
@@ -258,6 +260,7 @@ export interface PhoneNumberInputProps {
258
260
  isAdditionalErrorInput?: boolean;
259
261
  name?: string;
260
262
  field?: any;
263
+ isRequired?: boolean;
261
264
  }
262
265
  export interface SsnInputProps {
263
266
  value: string;
@@ -277,6 +280,7 @@ export interface SsnInputProps {
277
280
  field?: any;
278
281
  isIconRight?: boolean;
279
282
  iconClassRight?: string;
283
+ isRequired?: boolean;
280
284
  }
281
285
  export interface ModalProps {
282
286
  children?: React.ReactNode;
@@ -314,6 +318,7 @@ export interface CustomFileInputProps {
314
318
  pclass?: string;
315
319
  fileExt?: string;
316
320
  fileType?: string;
321
+ isRequired?: boolean;
317
322
  }
318
323
  export interface ToolTipProps {
319
324
  tooltipIcon?: string;
@@ -332,6 +337,7 @@ export interface DropdownMultiselectProps {
332
337
  enableToolTip?: boolean;
333
338
  tooltipProps?: ToolTipProps;
334
339
  onSelectedValuesChange: (selectedValues: string[]) => void;
340
+ isRequired?: boolean;
335
341
  }
336
342
  export interface IMultiSelectOption {
337
343
  value: string;
@@ -386,6 +392,7 @@ export interface DropdownSearchProps {
386
392
  listHeader?: string;
387
393
  selected?: string;
388
394
  clearAction?: () => void;
395
+ isRequired?: boolean;
389
396
  }
390
397
  export interface DropdownVersionProps {
391
398
  options?: OptionProps[];
@@ -445,6 +452,7 @@ export interface VersionDropDownProps {
445
452
  defaultText?: string;
446
453
  bgClasses?: string;
447
454
  hoverBgColor?: string;
455
+ isRequired?: boolean;
448
456
  }
449
457
  export declare enum ClickedAction {
450
458
  NONE = "NONE",
package/dist/index.d.ts CHANGED
@@ -181,12 +181,14 @@ interface ImageInputProps {
181
181
  additionalErrorClasses?: string;
182
182
  readOnly?: boolean;
183
183
  value?: string;
184
+ isRequired?: boolean;
184
185
  }
185
186
  interface CustomDatePickerProps {
186
187
  selectedDate?: Date | null;
187
188
  onChange?: (date: Date | null) => void;
188
189
  onSelect?: (date: Date | null) => void;
189
190
  label?: string;
191
+ isRequired?: boolean;
190
192
  placeHolder?: string;
191
193
  error?: string;
192
194
  isAdditionalErrorInput?: boolean;
@@ -235,6 +237,7 @@ interface PhoneNumberInputProps {
235
237
  isAdditionalErrorInput?: boolean;
236
238
  name?: string;
237
239
  field?: any;
240
+ isRequired?: boolean;
238
241
  }
239
242
  interface SsnInputProps {
240
243
  value: string;
@@ -254,6 +257,7 @@ interface SsnInputProps {
254
257
  field?: any;
255
258
  isIconRight?: boolean;
256
259
  iconClassRight?: string;
260
+ isRequired?: boolean;
257
261
  }
258
262
  interface ModalProps {
259
263
  children?: React.ReactNode;
@@ -291,6 +295,7 @@ interface CustomFileInputProps {
291
295
  pclass?: string;
292
296
  fileExt?: string;
293
297
  fileType?: string;
298
+ isRequired?: boolean;
294
299
  }
295
300
  interface ToolTipProps {
296
301
  tooltipIcon?: string;
@@ -309,6 +314,7 @@ interface DropdownMultiselectProps {
309
314
  enableToolTip?: boolean;
310
315
  tooltipProps?: ToolTipProps;
311
316
  onSelectedValuesChange: (selectedValues: string[]) => void;
317
+ isRequired?: boolean;
312
318
  }
313
319
  interface IMultiSelectOption {
314
320
  value: string;
@@ -363,6 +369,7 @@ interface DropdownSearchProps {
363
369
  listHeader?: string;
364
370
  selected?: string;
365
371
  clearAction?: () => void;
372
+ isRequired?: boolean;
366
373
  }
367
374
  interface UserDropdownProps {
368
375
  options?: OptionProps[];
@@ -407,6 +414,7 @@ interface VersionDropDownProps {
407
414
  defaultText?: string;
408
415
  bgClasses?: string;
409
416
  hoverBgColor?: string;
417
+ isRequired?: boolean;
410
418
  }
411
419
  declare enum ClickedAction {
412
420
  NONE = "NONE",
@@ -975,6 +983,7 @@ interface IHookFormsInputProps extends InputHTMLAttributes<HTMLInputElement> {
975
983
  ref?: any;
976
984
  inputFocus?: any;
977
985
  refProps?: any;
986
+ isRequired?: boolean;
978
987
  }
979
988
  interface ICheckboxProps extends AdditionalClassesProp {
980
989
  onChange?: (checked: boolean) => void;
@@ -1009,6 +1018,7 @@ interface ILabelProps {
1009
1018
  */
1010
1019
  labelSpanClasses?: string;
1011
1020
  secondaryText?: string;
1021
+ isRequired?: boolean;
1012
1022
  }
1013
1023
  interface IRadioProps extends InputHTMLAttributes<HTMLInputElement> {
1014
1024
  /**
@@ -1078,6 +1088,7 @@ interface ISelectProps extends SelectHTMLAttributes<HTMLSelectElement> {
1078
1088
  iconClasses?: string;
1079
1089
  isIcon?: boolean;
1080
1090
  secondaryText?: string;
1091
+ isRequired?: boolean;
1081
1092
  }
1082
1093
  interface IInputProps extends TextareaHTMLAttributes<HTMLTextAreaElement> {
1083
1094
  /**
@@ -1129,6 +1140,7 @@ interface IInputProps extends TextareaHTMLAttributes<HTMLTextAreaElement> {
1129
1140
  isEnableTextCount?: boolean;
1130
1141
  value?: string | undefined;
1131
1142
  setValue?: (value: string) => void;
1143
+ isRequired?: boolean;
1132
1144
  }
1133
1145
  interface ICardProps {
1134
1146
  /**
package/package.json CHANGED
@@ -1,111 +1,111 @@
1
- {
2
- "name": "dfh-ui-library",
3
- "version": "1.12.772",
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
- "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
- "dfh-form-generator": "^1.2.121",
27
- "dompurify": "^3.1.6",
28
- "formik": "^2.4.5",
29
- "lodash": "^4.17.21",
30
- "moment": "^2.29.4",
31
- "react": "^18.2.0",
32
- "react-datepicker": "^4.24.0",
33
- "react-dom": "^18.2.0",
34
- "react-input-mask": "^3.0.0-alpha.2",
35
- "react-phone-number-input": "^3.3.7",
36
- "react-select": "^5.8.0",
37
- "react-tooltip": "^5.26.3",
38
- "rollup-plugin-peer-deps-external": "^2.2.4",
39
- "rollup-plugin-scss": "^4.0.0",
40
- "signature_pad": "^4.2.0",
41
- "tailwindcss": "^3.3.5",
42
- "tsconfig-paths-webpack-plugin": "^4.1.0",
43
- "tslib": "^2.6.2",
44
- "typescript": "^5.2.2"
45
- },
46
- "devDependencies": {
47
- "@rollup/plugin-commonjs": "^25.0.7",
48
- "@rollup/plugin-node-resolve": "^15.2.3",
49
- "@rollup/plugin-typescript": "^11.1.5",
50
- "@storybook/addon-actions": "^7.6.3",
51
- "@storybook/addon-docs": "^7.5.3",
52
- "@storybook/addon-essentials": "^7.5.3",
53
- "@storybook/addon-interactions": "^7.5.3",
54
- "@storybook/addon-links": "^7.5.3",
55
- "@storybook/addon-onboarding": "^1.0.8",
56
- "@storybook/addon-postcss": "^2.0.0",
57
- "@storybook/blocks": "^7.5.3",
58
- "@storybook/cli": "^7.5.3",
59
- "@storybook/react": "^7.5.3",
60
- "@storybook/react-webpack5": "^7.5.3",
61
- "@storybook/testing-library": "^0.2.2",
62
- "@storybook/theming": "^7.5.3",
63
- "@testing-library/jest-dom": "^6.1.4",
64
- "@testing-library/react": "^14.1.2",
65
- "@testing-library/user-event": "^14.5.1",
66
- "@types/dompurify": "^3.0.5",
67
- "@types/jest": "^29.5.9",
68
- "@types/react-datepicker": "^4.19.4",
69
- "@types/signature_pad": "^2.3.6",
70
- "@typescript-eslint/eslint-plugin": "^6.12.0",
71
- "@typescript-eslint/parser": "^6.12.0",
72
- "autoprefixer": "^10.4.16",
73
- "cssnano": "^6.0.1",
74
- "eslint": "^8.54.0",
75
- "eslint-plugin-react": "^7.33.2",
76
- "jest": "^29.7.0",
77
- "jest-environment-jsdom": "^29.7.0",
78
- "postcss": "^8.4.31",
79
- "postcss-cssnext": "^3.1.1",
80
- "postcss-import": "^15.1.0",
81
- "postcss-loader": "^7.3.3",
82
- "rollup": "^4.5.0",
83
- "rollup-plugin-css-only": "^4.5.2",
84
- "rollup-plugin-dts": "^6.1.0",
85
- "rollup-plugin-postcss": "^4.0.2",
86
- "storybook": "^7.5.3",
87
- "sugarss": "^4.0.1",
88
- "vite": "^5.0.0"
89
- },
90
- "peerDependencies": {
91
- "@tailwindcss/forms": "^0.5.7",
92
- "autoprefixer": "^10.4.16",
93
- "classnames": "^2.3.2",
94
- "cssnano": "^6.0.1",
95
- "lodash": "^4.17.21",
96
- "moment": "^2.29.4",
97
- "postcss": "^8.4.31",
98
- "postcss-cssnext": "^3.1.1",
99
- "postcss-import": "^15.1.0",
100
- "postcss-loader": "^7.3.3",
101
- "react": "^18.2.0",
102
- "react-dom": "^18.2.0",
103
- "tailwindcss": "^3.3.5"
104
- },
105
- "main": "dist/cjs/index.js",
106
- "module": "dist/esm/index.js",
107
- "files": [
108
- "dist"
109
- ],
110
- "types": "dist/index.d.ts"
111
- }
1
+ {
2
+ "name": "dfh-ui-library",
3
+ "version": "1.12.774",
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
+ "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
+ "dfh-form-generator": "^1.2.121",
27
+ "dompurify": "^3.1.6",
28
+ "formik": "^2.4.5",
29
+ "lodash": "^4.17.21",
30
+ "moment": "^2.29.4",
31
+ "react": "^18.2.0",
32
+ "react-datepicker": "^4.24.0",
33
+ "react-dom": "^18.2.0",
34
+ "react-input-mask": "^3.0.0-alpha.2",
35
+ "react-phone-number-input": "^3.3.7",
36
+ "react-select": "^5.8.0",
37
+ "react-tooltip": "^5.26.3",
38
+ "rollup-plugin-peer-deps-external": "^2.2.4",
39
+ "rollup-plugin-scss": "^4.0.0",
40
+ "signature_pad": "^4.2.0",
41
+ "tailwindcss": "^3.3.5",
42
+ "tsconfig-paths-webpack-plugin": "^4.1.0",
43
+ "tslib": "^2.6.2",
44
+ "typescript": "^5.2.2"
45
+ },
46
+ "devDependencies": {
47
+ "@rollup/plugin-commonjs": "^25.0.7",
48
+ "@rollup/plugin-node-resolve": "^15.2.3",
49
+ "@rollup/plugin-typescript": "^11.1.5",
50
+ "@storybook/addon-actions": "^7.6.3",
51
+ "@storybook/addon-docs": "^7.5.3",
52
+ "@storybook/addon-essentials": "^7.5.3",
53
+ "@storybook/addon-interactions": "^7.5.3",
54
+ "@storybook/addon-links": "^7.5.3",
55
+ "@storybook/addon-onboarding": "^1.0.8",
56
+ "@storybook/addon-postcss": "^2.0.0",
57
+ "@storybook/blocks": "^7.5.3",
58
+ "@storybook/cli": "^7.5.3",
59
+ "@storybook/react": "^7.5.3",
60
+ "@storybook/react-webpack5": "^7.5.3",
61
+ "@storybook/testing-library": "^0.2.2",
62
+ "@storybook/theming": "^7.5.3",
63
+ "@testing-library/jest-dom": "^6.1.4",
64
+ "@testing-library/react": "^14.1.2",
65
+ "@testing-library/user-event": "^14.5.1",
66
+ "@types/dompurify": "^3.0.5",
67
+ "@types/jest": "^29.5.9",
68
+ "@types/react-datepicker": "^4.19.4",
69
+ "@types/signature_pad": "^2.3.6",
70
+ "@typescript-eslint/eslint-plugin": "^6.12.0",
71
+ "@typescript-eslint/parser": "^6.12.0",
72
+ "autoprefixer": "^10.4.16",
73
+ "cssnano": "^6.0.1",
74
+ "eslint": "^8.54.0",
75
+ "eslint-plugin-react": "^7.33.2",
76
+ "jest": "^29.7.0",
77
+ "jest-environment-jsdom": "^29.7.0",
78
+ "postcss": "^8.4.31",
79
+ "postcss-cssnext": "^3.1.1",
80
+ "postcss-import": "^15.1.0",
81
+ "postcss-loader": "^7.3.3",
82
+ "rollup": "^4.5.0",
83
+ "rollup-plugin-css-only": "^4.5.2",
84
+ "rollup-plugin-dts": "^6.1.0",
85
+ "rollup-plugin-postcss": "^4.0.2",
86
+ "storybook": "^7.5.3",
87
+ "sugarss": "^4.0.1",
88
+ "vite": "^5.0.0"
89
+ },
90
+ "peerDependencies": {
91
+ "@tailwindcss/forms": "^0.5.7",
92
+ "autoprefixer": "^10.4.16",
93
+ "classnames": "^2.3.2",
94
+ "cssnano": "^6.0.1",
95
+ "lodash": "^4.17.21",
96
+ "moment": "^2.29.4",
97
+ "postcss": "^8.4.31",
98
+ "postcss-cssnext": "^3.1.1",
99
+ "postcss-import": "^15.1.0",
100
+ "postcss-loader": "^7.3.3",
101
+ "react": "^18.2.0",
102
+ "react-dom": "^18.2.0",
103
+ "tailwindcss": "^3.3.5"
104
+ },
105
+ "main": "dist/cjs/index.js",
106
+ "module": "dist/esm/index.js",
107
+ "files": [
108
+ "dist"
109
+ ],
110
+ "types": "dist/index.d.ts"
111
+ }