dfh-ui-library 1.7.53 → 1.7.55

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.
Files changed (41) hide show
  1. package/README.md +118 -118
  2. package/dist/cjs/index.css +1 -1
  3. package/dist/cjs/index.css.map +1 -1
  4. package/dist/cjs/index.js +1 -1
  5. package/dist/cjs/index.js.map +1 -1
  6. package/dist/cjs/types/components/Button/Button.handler.d.ts +1 -1
  7. package/dist/cjs/types/components/Media/Icons/Icons.d.ts +2 -3
  8. package/dist/cjs/types/components/index.d.ts +0 -1
  9. package/dist/cjs/types/shared/configs/customClasses.d.ts +1 -2
  10. package/dist/cjs/types/shared/configs/themeConfig.d.ts +1 -1
  11. package/dist/cjs/types/shared/models/components/base.model.d.ts +2 -4
  12. package/dist/cjs/types/shared/models/components/common.model.d.ts +3 -21
  13. package/dist/esm/index.css +1 -1
  14. package/dist/esm/index.css.map +1 -1
  15. package/dist/esm/index.js +1 -1
  16. package/dist/esm/index.js.map +1 -1
  17. package/dist/esm/types/components/Button/Button.handler.d.ts +1 -1
  18. package/dist/esm/types/components/Media/Icons/Icons.d.ts +2 -3
  19. package/dist/esm/types/components/index.d.ts +0 -1
  20. package/dist/esm/types/shared/configs/customClasses.d.ts +1 -2
  21. package/dist/esm/types/shared/configs/themeConfig.d.ts +1 -1
  22. package/dist/esm/types/shared/models/components/base.model.d.ts +2 -4
  23. package/dist/esm/types/shared/models/components/common.model.d.ts +3 -21
  24. package/dist/index.d.ts +7 -12
  25. package/package.json +106 -106
  26. package/dist/cjs/types/components/FilterButtonGroup/Checkbox.d.ts +0 -8
  27. package/dist/cjs/types/components/FilterButtonGroup/FilterButton.d.ts +0 -4
  28. package/dist/cjs/types/components/FilterButtonGroup/FilterButtonGroup.d.ts +0 -4
  29. package/dist/cjs/types/components/FilterButtonGroup/index.d.ts +0 -1
  30. package/dist/cjs/types/components/Gird/GridCheckBox.d.ts +0 -5
  31. package/dist/cjs/types/components/InputFormGen/InputFormGen.test.d.ts +0 -1
  32. package/dist/cjs/types/components/SelectDropdownUser/SelectDropdownUser.d.ts +0 -4
  33. package/dist/cjs/types/components/SelectDropdownUser/index.d.ts +0 -1
  34. package/dist/esm/types/components/FilterButtonGroup/Checkbox.d.ts +0 -8
  35. package/dist/esm/types/components/FilterButtonGroup/FilterButton.d.ts +0 -4
  36. package/dist/esm/types/components/FilterButtonGroup/FilterButtonGroup.d.ts +0 -4
  37. package/dist/esm/types/components/FilterButtonGroup/index.d.ts +0 -1
  38. package/dist/esm/types/components/Gird/GridCheckBox.d.ts +0 -5
  39. package/dist/esm/types/components/InputFormGen/InputFormGen.test.d.ts +0 -1
  40. package/dist/esm/types/components/SelectDropdownUser/SelectDropdownUser.d.ts +0 -4
  41. package/dist/esm/types/components/SelectDropdownUser/index.d.ts +0 -1
package/dist/index.d.ts CHANGED
@@ -173,7 +173,6 @@ interface CustomDatePickerProps {
173
173
  additionalClasses?: string | undefined;
174
174
  readOnly?: boolean;
175
175
  type?: InputType;
176
- height?: string;
177
176
  /**
178
177
  * Set new variant of the input
179
178
  */
@@ -256,13 +255,12 @@ interface DropdownMultiselectProps {
256
255
  onSelectedValuesChange: (selectedValues: string[]) => void;
257
256
  }
258
257
  interface OptionProps {
258
+ id: string;
259
259
  displayText: string;
260
260
  iconText: string;
261
261
  imageUrl?: string;
262
262
  bgColor?: string;
263
263
  clickedAction?: ClickedAction;
264
- isChecked?: boolean;
265
- id?: string;
266
264
  }
267
265
  interface BtnOptionDropdown {
268
266
  btnLabel: string;
@@ -281,6 +279,8 @@ interface DropdownSearchProps {
281
279
  additionalClasses?: string;
282
280
  readOnly?: boolean;
283
281
  isBorderedError?: boolean;
282
+ listHeader?: string;
283
+ selected?: string;
284
284
  }
285
285
  declare enum ClickedAction {
286
286
  NONE = "NONE",
@@ -304,7 +304,6 @@ interface ButtonGroupProps extends InputGroupProps {
304
304
  id: number;
305
305
  value: string;
306
306
  }[];
307
- optionsUser?: OptionProps[];
308
307
  onSelect: (selectedOption: number) => void;
309
308
  label?: string;
310
309
  error?: string;
@@ -397,7 +396,7 @@ interface ICardInfoProps {
397
396
  HeaderText?: string;
398
397
  }
399
398
 
400
- type VariantTypes = "large" | "small" | "extraSmall" | "largeOutlined" | "smallOutlined" | "extraSmallOutlined" | "default" | "defaultOutlined" | "primaryBlue" | "primaryWhite" | "primaryWhiteSelected" | "primaryWhiteNoBoader" | "primaryWhiteIcon" | "primaryRed" | "primaryFilterSelected" | "primaryBlueFilter" | undefined;
399
+ type VariantTypes = "large" | "small" | "extraSmall" | "largeOutlined" | "smallOutlined" | "extraSmallOutlined" | "default" | "defaultOutlined" | "primaryBlue" | "primaryWhite" | "primaryWhiteSelected" | "primaryWhiteNoBoader" | "primaryWhiteIcon" | "primaryRed" | undefined;
401
400
  interface IButtonProps extends IChildrenProp, IAdditionalClassesProp, IIconTypeProp, IOnClickEventProps {
402
401
  /**
403
402
  * Set the button type
@@ -553,8 +552,6 @@ interface IHookFormsInputProps extends InputHTMLAttributes<HTMLInputElement> {
553
552
  enableToolTip?: boolean;
554
553
  tooltipProps?: ToolTipProps;
555
554
  suffixed?: string;
556
- labelLeftAction?: () => void;
557
- labelLeftText?: string;
558
555
  }
559
556
  interface ICheckboxProps {
560
557
  onChange?: (checked: boolean) => void;
@@ -562,7 +559,7 @@ interface ICheckboxProps {
562
559
  id?: any;
563
560
  label?: string;
564
561
  }
565
- type LABELTYPE = "default" | "black" | "smallSelect" | "blackSmall" | "formLabel" | "formLabelMedeum" | "formButtonGroup" | "fontSemiBold" | undefined;
562
+ type LABELTYPE = "default" | "black" | "smallSelect" | "blackSmall" | "formLabel" | "formLabelMedeum" | "formButtonGroup" | undefined;
566
563
  interface ILabelProps {
567
564
  /**
568
565
  * Set the Label Type
@@ -981,8 +978,6 @@ declare const ButtonGroupWithInputsFormGen: React__default.FC<FormGenButtonGroup
981
978
 
982
979
  declare const DynamicDualInputTextGroupFormGen: React__default.FC<DyanamicDualInputProps>;
983
980
 
984
- declare const FilterButtonGroup: React__default.FC<ButtonGroupProps>;
985
-
986
981
  interface UseSchemaProcessorProps {
987
982
  schema: ISchema[];
988
983
  externalSetComponents: (data: IComponent[]) => void;
@@ -1190,6 +1185,7 @@ declare const themeConfigs: {
1190
1185
  500: string;
1191
1186
  600: string;
1192
1187
  700: string;
1188
+ 720: string;
1193
1189
  725: string;
1194
1190
  800: string;
1195
1191
  820: string;
@@ -1226,7 +1222,6 @@ declare const themeConfigs: {
1226
1222
  "19s": string[];
1227
1223
  "20s": string[];
1228
1224
  "24s": string[];
1229
- "24-32s": string[];
1230
1225
  "26s": string[];
1231
1226
  "28s": string[];
1232
1227
  "32s": string[];
@@ -1287,4 +1282,4 @@ declare const themeConfigs: {
1287
1282
  plugins: any[];
1288
1283
  };
1289
1284
 
1290
- 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, Icon, IconInput, ImageInput, ImagePreview, InfoCard, Input, type InputType, InputValidation, InputsGroup, Label, LoadingSpinner, Logo, type LogoProps, Message, type MessageProps, Modal, NavBar, type OptionProps, PanelCard, PhoneNumberInput, ProgressBar, RadioButton, Row, SearchDropdownWithButton, Select, Stepper, Tab, TabList, TabPanel, Table, TagSelect as TagDropdown, TagSelect, Textarea, Tooltip, Typhography, useSchemaProcessor as UseSchemaProcessor, type VariantTypes, themeConfigs, usePagination, useSorting };
1285
+ 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, Heading, Icon, IconInput, ImageInput, ImagePreview, InfoCard, Input, type InputType, InputValidation, InputsGroup, Label, LoadingSpinner, Logo, type LogoProps, Message, type MessageProps, Modal, NavBar, type OptionProps, PanelCard, PhoneNumberInput, ProgressBar, RadioButton, Row, SearchDropdownWithButton, Select, Stepper, Tab, TabList, TabPanel, Table, TagSelect as TagDropdown, TagSelect, Textarea, Tooltip, Typhography, useSchemaProcessor as UseSchemaProcessor, type VariantTypes, themeConfigs, usePagination, useSorting };
package/package.json CHANGED
@@ -1,106 +1,106 @@
1
- {
2
- "name": "dfh-ui-library",
3
- "version": "1.7.53",
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.55",
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,8 +0,0 @@
1
- import React from "react";
2
- interface CheckboxProps {
3
- id?: string;
4
- checked?: boolean;
5
- onChange: (id?: string) => void;
6
- }
7
- declare const CheckBoxComponent: React.FC<CheckboxProps>;
8
- export default CheckBoxComponent;
@@ -1,4 +0,0 @@
1
- import React from "react";
2
- import { IButtonProps } from "../../shared/models/components/base.model";
3
- declare const FilterButton: ({ type, isDisabled, buttonLabel, iconType, iconColor, iconAlignment, isIconEnabled, variants, additionalClasses, iconClass, enableBagage, bagageProps, width, onClick, }: IButtonProps) => React.JSX.Element;
4
- export default FilterButton;
@@ -1,4 +0,0 @@
1
- import React from "react";
2
- import { ButtonGroupProps } from "../../shared/models/components/common.model";
3
- declare const FilterButtonGroup: React.FC<ButtonGroupProps>;
4
- export default FilterButtonGroup;
@@ -1 +0,0 @@
1
- export { default } from "./FilterButtonGroup";
@@ -1,5 +0,0 @@
1
- import React from "react";
2
- import { HTMLProps } from "react";
3
- export declare function IndeterminateCheckbox({ indeterminate, className, ...rest }: {
4
- indeterminate?: boolean;
5
- } & HTMLProps<HTMLInputElement>): React.JSX.Element;
@@ -1 +0,0 @@
1
- import "@testing-library/jest-dom";
@@ -1,4 +0,0 @@
1
- import React from "react";
2
- import { UserDropdownProps } from "../../shared/models/components/common.model";
3
- declare const SelectDropdownUser: React.FC<UserDropdownProps>;
4
- export default SelectDropdownUser;
@@ -1 +0,0 @@
1
- export { default } from "./SelectDropdownUser";
@@ -1,8 +0,0 @@
1
- import React from "react";
2
- interface CheckboxProps {
3
- id?: string;
4
- checked?: boolean;
5
- onChange: (id?: string) => void;
6
- }
7
- declare const CheckBoxComponent: React.FC<CheckboxProps>;
8
- export default CheckBoxComponent;
@@ -1,4 +0,0 @@
1
- import React from "react";
2
- import { IButtonProps } from "../../shared/models/components/base.model";
3
- declare const FilterButton: ({ type, isDisabled, buttonLabel, iconType, iconColor, iconAlignment, isIconEnabled, variants, additionalClasses, iconClass, enableBagage, bagageProps, width, onClick, }: IButtonProps) => React.JSX.Element;
4
- export default FilterButton;
@@ -1,4 +0,0 @@
1
- import React from "react";
2
- import { ButtonGroupProps } from "../../shared/models/components/common.model";
3
- declare const FilterButtonGroup: React.FC<ButtonGroupProps>;
4
- export default FilterButtonGroup;
@@ -1 +0,0 @@
1
- export { default } from "./FilterButtonGroup";
@@ -1,5 +0,0 @@
1
- import React from "react";
2
- import { HTMLProps } from "react";
3
- export declare function IndeterminateCheckbox({ indeterminate, className, ...rest }: {
4
- indeterminate?: boolean;
5
- } & HTMLProps<HTMLInputElement>): React.JSX.Element;
@@ -1 +0,0 @@
1
- import "@testing-library/jest-dom";
@@ -1,4 +0,0 @@
1
- import React from "react";
2
- import { UserDropdownProps } from "../../shared/models/components/common.model";
3
- declare const SelectDropdownUser: React.FC<UserDropdownProps>;
4
- export default SelectDropdownUser;
@@ -1 +0,0 @@
1
- export { default } from "./SelectDropdownUser";