dfh-ui-library 1.7.46 → 1.7.48
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/Button/Button.handler.d.ts +1 -1
- package/dist/cjs/types/components/FilterButtonGroup/Checkbox.d.ts +8 -0
- package/dist/cjs/types/components/FilterButtonGroup/FilterButton.d.ts +4 -0
- package/dist/cjs/types/components/FilterButtonGroup/FilterButtonGroup.d.ts +4 -0
- package/dist/cjs/types/components/FilterButtonGroup/index.d.ts +1 -0
- package/dist/cjs/types/components/Gird/GridCheckBox.d.ts +5 -0
- package/dist/cjs/types/components/InputFormGen/InputFormGen.test.d.ts +1 -0
- package/dist/cjs/types/components/Media/Icons/Icons.d.ts +3 -2
- package/dist/cjs/types/components/SelectDropdownUser/SelectDropdownUser.d.ts +4 -0
- package/dist/cjs/types/components/SelectDropdownUser/index.d.ts +1 -0
- package/dist/cjs/types/shared/configs/customClasses.d.ts +2 -1
- package/dist/cjs/types/shared/configs/themeConfig.d.ts +1 -1
- package/dist/cjs/types/shared/models/components/base.model.d.ts +4 -2
- package/dist/cjs/types/shared/models/components/common.model.d.ts +20 -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/Button/Button.handler.d.ts +1 -1
- package/dist/esm/types/components/FilterButtonGroup/Checkbox.d.ts +8 -0
- package/dist/esm/types/components/FilterButtonGroup/FilterButton.d.ts +4 -0
- package/dist/esm/types/components/FilterButtonGroup/FilterButtonGroup.d.ts +4 -0
- package/dist/esm/types/components/FilterButtonGroup/index.d.ts +1 -0
- package/dist/esm/types/components/Gird/GridCheckBox.d.ts +5 -0
- package/dist/esm/types/components/InputFormGen/InputFormGen.test.d.ts +1 -0
- package/dist/esm/types/components/Media/Icons/Icons.d.ts +3 -2
- package/dist/esm/types/components/SelectDropdownUser/SelectDropdownUser.d.ts +4 -0
- package/dist/esm/types/components/SelectDropdownUser/index.d.ts +1 -0
- package/dist/esm/types/shared/configs/customClasses.d.ts +2 -1
- package/dist/esm/types/shared/configs/themeConfig.d.ts +1 -1
- package/dist/esm/types/shared/models/components/base.model.d.ts +4 -2
- package/dist/esm/types/shared/models/components/common.model.d.ts +20 -0
- package/dist/index.d.ts +8 -3
- package/package.json +106 -106
|
@@ -296,6 +296,8 @@ export interface OptionProps {
|
|
|
296
296
|
imageUrl?: string;
|
|
297
297
|
bgColor?: string;
|
|
298
298
|
clickedAction?: ClickedAction;
|
|
299
|
+
isChecked?: boolean;
|
|
300
|
+
id?: string;
|
|
299
301
|
}
|
|
300
302
|
export interface BtnOptionDropdown {
|
|
301
303
|
btnLabel: string;
|
|
@@ -315,6 +317,23 @@ export interface DropdownSearchProps {
|
|
|
315
317
|
readOnly?: boolean;
|
|
316
318
|
isBorderedError?: boolean;
|
|
317
319
|
}
|
|
320
|
+
export interface UserDropdownProps {
|
|
321
|
+
options?: OptionProps[];
|
|
322
|
+
label?: string;
|
|
323
|
+
labelType?: LableTypes;
|
|
324
|
+
onSelectedValuesChange?: (selectedValue: OptionProps) => void;
|
|
325
|
+
buttonProps?: BtnOptionDropdown[];
|
|
326
|
+
defaultValue?: string;
|
|
327
|
+
additionalErrorClasses?: string;
|
|
328
|
+
error?: string;
|
|
329
|
+
additionalClasses?: string;
|
|
330
|
+
readOnly?: boolean;
|
|
331
|
+
isBorderedError?: boolean;
|
|
332
|
+
selectedValues?: OptionProps[];
|
|
333
|
+
setSelectedValues?: any;
|
|
334
|
+
onClick?: () => void;
|
|
335
|
+
variants?: string;
|
|
336
|
+
}
|
|
318
337
|
export declare enum ClickedAction {
|
|
319
338
|
NONE = "NONE",
|
|
320
339
|
ADDME = "ADDME",
|
|
@@ -337,6 +356,7 @@ export interface ButtonGroupProps extends InputGroupProps {
|
|
|
337
356
|
id: number;
|
|
338
357
|
value: string;
|
|
339
358
|
}[];
|
|
359
|
+
optionsUser?: OptionProps[];
|
|
340
360
|
onSelect: (selectedOption: number) => void;
|
|
341
361
|
label?: string;
|
|
342
362
|
error?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -260,6 +260,8 @@ interface OptionProps {
|
|
|
260
260
|
imageUrl?: string;
|
|
261
261
|
bgColor?: string;
|
|
262
262
|
clickedAction?: ClickedAction;
|
|
263
|
+
isChecked?: boolean;
|
|
264
|
+
id?: string;
|
|
263
265
|
}
|
|
264
266
|
interface BtnOptionDropdown {
|
|
265
267
|
btnLabel: string;
|
|
@@ -301,6 +303,7 @@ interface ButtonGroupProps extends InputGroupProps {
|
|
|
301
303
|
id: number;
|
|
302
304
|
value: string;
|
|
303
305
|
}[];
|
|
306
|
+
optionsUser?: OptionProps[];
|
|
304
307
|
onSelect: (selectedOption: number) => void;
|
|
305
308
|
label?: string;
|
|
306
309
|
error?: string;
|
|
@@ -393,7 +396,7 @@ interface ICardInfoProps {
|
|
|
393
396
|
HeaderText?: string;
|
|
394
397
|
}
|
|
395
398
|
|
|
396
|
-
type VariantTypes = "large" | "small" | "extraSmall" | "largeOutlined" | "smallOutlined" | "extraSmallOutlined" | "default" | "defaultOutlined" | "primaryBlue" | "primaryWhite" | "primaryWhiteSelected" | "primaryWhiteNoBoader" | "primaryWhiteIcon" | "primaryRed" | undefined;
|
|
399
|
+
type VariantTypes = "large" | "small" | "extraSmall" | "largeOutlined" | "smallOutlined" | "extraSmallOutlined" | "default" | "defaultOutlined" | "primaryBlue" | "primaryWhite" | "primaryWhiteSelected" | "primaryWhiteNoBoader" | "primaryWhiteIcon" | "primaryRed" | "primaryFilterSelected" | "primaryBlueFilter" | undefined;
|
|
397
400
|
interface IButtonProps extends IChildrenProp, IAdditionalClassesProp, IIconTypeProp, IOnClickEventProps {
|
|
398
401
|
/**
|
|
399
402
|
* Set the button type
|
|
@@ -549,6 +552,8 @@ interface IHookFormsInputProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
|
549
552
|
enableToolTip?: boolean;
|
|
550
553
|
tooltipProps?: ToolTipProps;
|
|
551
554
|
suffixed?: string;
|
|
555
|
+
labelLeftAction?: () => void;
|
|
556
|
+
labelLeftText?: string;
|
|
552
557
|
}
|
|
553
558
|
interface ICheckboxProps {
|
|
554
559
|
onChange?: (checked: boolean) => void;
|
|
@@ -556,7 +561,7 @@ interface ICheckboxProps {
|
|
|
556
561
|
id?: any;
|
|
557
562
|
label?: string;
|
|
558
563
|
}
|
|
559
|
-
type LABELTYPE = "default" | "black" | "smallSelect" | "blackSmall" | "formLabel" | "formLabelMedeum" | "formButtonGroup" | undefined;
|
|
564
|
+
type LABELTYPE = "default" | "black" | "smallSelect" | "blackSmall" | "formLabel" | "formLabelMedeum" | "formButtonGroup" | "fontSemiBold" | undefined;
|
|
560
565
|
interface ILabelProps {
|
|
561
566
|
/**
|
|
562
567
|
* Set the Label Type
|
|
@@ -1182,7 +1187,6 @@ declare const themeConfigs: {
|
|
|
1182
1187
|
500: string;
|
|
1183
1188
|
600: string;
|
|
1184
1189
|
700: string;
|
|
1185
|
-
720: string;
|
|
1186
1190
|
725: string;
|
|
1187
1191
|
800: string;
|
|
1188
1192
|
820: string;
|
|
@@ -1219,6 +1223,7 @@ declare const themeConfigs: {
|
|
|
1219
1223
|
"19s": string[];
|
|
1220
1224
|
"20s": string[];
|
|
1221
1225
|
"24s": string[];
|
|
1226
|
+
"24-32s": string[];
|
|
1222
1227
|
"26s": string[];
|
|
1223
1228
|
"28s": string[];
|
|
1224
1229
|
"32s": string[];
|
package/package.json
CHANGED
|
@@ -1,106 +1,106 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "dfh-ui-library",
|
|
3
|
-
"version": "1.7.
|
|
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.24.0",
|
|
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.7.48",
|
|
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.24.0",
|
|
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
|
+
}
|