digitinary-ui 1.0.13 → 1.0.14

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 (84) hide show
  1. package/README.md +30 -30
  2. package/dist/components/Accordion/Accordion.d.ts +3 -3
  3. package/dist/components/Accordion/index.d.ts +1 -1
  4. package/dist/components/Alert/Alert.d.ts +3 -3
  5. package/dist/components/Alert/index.d.ts +1 -1
  6. package/dist/components/Button/Button.d.ts +6 -6
  7. package/dist/components/Button/index.d.ts +1 -1
  8. package/dist/components/Card/Card.d.ts +3 -3
  9. package/dist/components/Card/index.d.ts +1 -1
  10. package/dist/components/Checkbox/Checkbox.d.ts +3 -3
  11. package/dist/components/Checkbox/index.d.ts +1 -1
  12. package/dist/components/Chip/Chip.d.ts +6 -6
  13. package/dist/components/Chip/index.d.ts +1 -1
  14. package/dist/components/Date/Date.d.ts +4 -4
  15. package/dist/components/Date/index.d.ts +1 -1
  16. package/dist/components/DateRange/DateRange.d.ts +4 -4
  17. package/dist/components/DateRange/index.d.ts +1 -1
  18. package/dist/components/Dialog/Dialog.d.ts +3 -3
  19. package/dist/components/Dialog/index.d.ts +1 -1
  20. package/dist/components/HelperText/HelperText.d.ts +3 -3
  21. package/dist/components/HelperText/index.d.ts +1 -1
  22. package/dist/components/Input/Input.d.ts +3 -3
  23. package/dist/components/Input/index.d.ts +1 -1
  24. package/dist/components/Label/Label.d.ts +3 -3
  25. package/dist/components/Label/index.d.ts +1 -1
  26. package/dist/components/Loader/Loader.d.ts +6 -6
  27. package/dist/components/Loader/index.d.ts +1 -1
  28. package/dist/components/Overlay/Overlay.d.ts +3 -3
  29. package/dist/components/Overlay/index.d.ts +1 -1
  30. package/dist/components/Pagination/Pagination.d.ts +3 -3
  31. package/dist/components/Pagination/index.d.ts +1 -1
  32. package/dist/components/Radio/Radio.d.ts +4 -4
  33. package/dist/components/Radio/index.d.ts +1 -1
  34. package/dist/components/RadioGroup/RadioGroup.d.ts +3 -3
  35. package/dist/components/RadioGroup/index.d.ts +1 -1
  36. package/dist/components/SelectGroup/SelectGroup.d.ts +3 -3
  37. package/dist/components/SelectGroup/index.d.ts +1 -1
  38. package/dist/components/SideDrawer/SideDrawer.d.ts +3 -3
  39. package/dist/components/SideDrawer/index.d.ts +1 -1
  40. package/dist/components/Switch/Switch.d.ts +3 -3
  41. package/dist/components/Switch/index.d.ts +1 -1
  42. package/dist/components/Table/Table.d.ts +3 -3
  43. package/dist/components/Table/index.d.ts +1 -1
  44. package/dist/components/TextArea/TextArea.d.ts +3 -3
  45. package/dist/components/TextArea/index.d.ts +1 -1
  46. package/dist/components/Tooltip/Tooltip.d.ts +6 -6
  47. package/dist/components/index.d.ts +20 -20
  48. package/dist/constants/index.d.ts +1 -4
  49. package/dist/icons/AlertErrorIcon.d.ts +3 -3
  50. package/dist/icons/AlertInfoIcon.d.ts +3 -3
  51. package/dist/icons/AlertSuccessIcon.d.ts +3 -3
  52. package/dist/icons/AlertWarningIcon.d.ts +3 -3
  53. package/dist/icons/ArrowBottom.d.ts +3 -3
  54. package/dist/icons/ArrowLeft.d.ts +3 -3
  55. package/dist/icons/ArrowRight.d.ts +3 -3
  56. package/dist/icons/ArrowUpIcon.d.ts +3 -3
  57. package/dist/icons/Calendar.d.ts +3 -3
  58. package/dist/icons/CheckMark.d.ts +3 -3
  59. package/dist/icons/ClearField.d.ts +3 -3
  60. package/dist/icons/CloseIcon.d.ts +3 -3
  61. package/dist/icons/DoubleLeftArrow.d.ts +3 -3
  62. package/dist/icons/DoubleRightArrow.d.ts +3 -3
  63. package/dist/icons/ExcelIcon.d.ts +3 -3
  64. package/dist/icons/HidePasswordIcon.d.ts +3 -3
  65. package/dist/icons/InfoIcon.d.ts +3 -3
  66. package/dist/icons/LeftArrowIcon.d.ts +3 -3
  67. package/dist/icons/LoaderIcon.d.ts +3 -3
  68. package/dist/icons/PdfIcon.d.ts +3 -3
  69. package/dist/icons/RightArrowIcon.d.ts +3 -3
  70. package/dist/icons/SearchIcon.d.ts +3 -3
  71. package/dist/icons/SelectFieldDownArrow.d.ts +3 -3
  72. package/dist/icons/SelectFieldUpArrow.d.ts +3 -3
  73. package/dist/icons/ShowPasswordIcon.d.ts +3 -3
  74. package/dist/icons/SortIcon.d.ts +3 -3
  75. package/dist/index.d.ts +3 -3
  76. package/dist/index.js +1 -1
  77. package/dist/types/all.scss.d.ts +4 -4
  78. package/dist/types/enums.d.ts +21 -21
  79. package/dist/types/index.d.ts +3 -3
  80. package/dist/types/interfaces.d.ts +268 -266
  81. package/dist/types/jsx.d.ts +12 -12
  82. package/dist/types/types.d.ts +23 -23
  83. package/dist/utils/index.d.ts +82 -82
  84. package/package.json +84 -84
@@ -1,23 +1,23 @@
1
- export type RadioOption = {
2
- value: string;
3
- label: string;
4
- disabled?: boolean;
5
- };
6
- export type ButtonType = 'button' | 'submit' | 'reset';
7
- export type InputType = 'text' | 'email' | 'number' | 'password';
8
- export type BaseColorType = 'default' | 'inherit' | 'primary' | 'secondary' | 'success' | 'error' | 'info' | 'warning' | 'action' | 'natural';
9
- export type SwitchColorType = Exclude<BaseColorType, 'default' | 'inherit' | 'info' | 'action' | 'natural'>;
10
- export type ButtonColorType = Exclude<BaseColorType, 'default' | 'natural'>;
11
- export type ChipColorType = Exclude<BaseColorType, 'inherit' | 'action' | 'natural'>;
12
- export type RadioColorType = Exclude<BaseColorType, 'inherit' | 'action' | 'info' | 'natural'>;
13
- export type AlertColorType = Exclude<BaseColorType, 'default' | 'inherit' | 'primary' | 'secondary' | 'action'>;
14
- export type HelperTextColorType = Exclude<BaseColorType, 'inherit' | 'primary' | 'secondary' | 'success' | 'warning' | 'action' | 'natural'>;
15
- export type BaseVariantType = 'default' | 'filled' | 'outlined' | 'contained' | 'text' | 'link';
16
- export type AlertVariantType = Exclude<BaseVariantType, 'contained' | 'text' | 'link'>;
17
- export type ButtonVariantType = Exclude<BaseVariantType, 'default' | 'filled'>;
18
- export type ChipVariantType = Exclude<BaseVariantType, 'default' | 'contained' | 'text' | 'link'>;
19
- export type SizeType = 'small' | 'medium' | 'large';
20
- export type PlacementType = 'left' | 'right' | 'top' | 'bottom';
21
- export type HtmlElementsWithDisabledProp = HTMLButtonElement | HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement;
22
- export type DurationType = 'days' | 'weeks' | 'months' | 'hours';
23
- export type PositionType = 'end' | 'start' | 'top' | 'bottom';
1
+ export type RadioOption = {
2
+ value: string;
3
+ label: string;
4
+ disabled?: boolean;
5
+ };
6
+ export type ButtonType = 'button' | 'submit' | 'reset';
7
+ export type InputType = 'text' | 'email' | 'number' | 'password';
8
+ export type BaseColorType = 'default' | 'inherit' | 'primary' | 'secondary' | 'success' | 'error' | 'info' | 'warning' | 'action' | 'natural';
9
+ export type SwitchColorType = Exclude<BaseColorType, 'default' | 'inherit' | 'info' | 'action' | 'natural'>;
10
+ export type ButtonColorType = Exclude<BaseColorType, 'default' | 'natural'>;
11
+ export type ChipColorType = Exclude<BaseColorType, 'inherit' | 'action' | 'natural'>;
12
+ export type RadioColorType = Exclude<BaseColorType, 'inherit' | 'action' | 'info' | 'natural'>;
13
+ export type AlertColorType = Exclude<BaseColorType, 'default' | 'inherit' | 'primary' | 'secondary' | 'action'>;
14
+ export type HelperTextColorType = Exclude<BaseColorType, 'inherit' | 'primary' | 'secondary' | 'success' | 'warning' | 'action' | 'natural'>;
15
+ export type BaseVariantType = 'default' | 'filled' | 'outlined' | 'contained' | 'text' | 'link';
16
+ export type AlertVariantType = Exclude<BaseVariantType, 'contained' | 'text' | 'link'>;
17
+ export type ButtonVariantType = Exclude<BaseVariantType, 'default' | 'filled'>;
18
+ export type ChipVariantType = Exclude<BaseVariantType, 'default' | 'contained' | 'text' | 'link'>;
19
+ export type SizeType = 'small' | 'medium' | 'large';
20
+ export type PlacementType = 'left' | 'right' | 'top' | 'bottom';
21
+ export type HtmlElementsWithDisabledProp = HTMLButtonElement | HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement;
22
+ export type DurationType = 'days' | 'weeks' | 'months' | 'hours';
23
+ export type PositionType = 'end' | 'start' | 'top' | 'bottom';
@@ -1,82 +1,82 @@
1
- interface CSSVariables {
2
- white?: string;
3
- 'Gray-5'?: string;
4
- 'Gray-10'?: string;
5
- 'Gray-20'?: string;
6
- 'Gray-30'?: string;
7
- 'Gray-40'?: string;
8
- 'Gray-50'?: string;
9
- 'Gray-60'?: string;
10
- 'Gray-100'?: string;
11
- black?: string;
12
- 'primary-static'?: string;
13
- 'primary-hover'?: string;
14
- 'primary-active'?: string;
15
- 'primary-disabled'?: string;
16
- 'secondary-static'?: string;
17
- 'secondary-hover'?: string;
18
- 'error-static'?: string;
19
- 'error-hover'?: string;
20
- 'error-active'?: string;
21
- 'success-static'?: string;
22
- 'success-hover'?: string;
23
- 'success-active'?: string;
24
- 'info-static'?: string;
25
- 'info-hover'?: string;
26
- 'info-active'?: string;
27
- 'warning-static'?: string;
28
- 'warning-hover'?: string;
29
- 'warning-active'?: string;
30
- 'action-static'?: string;
31
- 'action-hover'?: string;
32
- 'action-active'?: string;
33
- 'color-info-primary'?: string;
34
- 'primary-font-color'?: string;
35
- 'placeholder-font-color'?: string;
36
- 'warning-font-color'?: string;
37
- 'alert-error'?: string;
38
- 'alert-light-error'?: string;
39
- 'alert-success'?: string;
40
- 'alert-light-success'?: string;
41
- 'alert-info'?: string;
42
- 'alert-light-info'?: string;
43
- 'alert-warning'?: string;
44
- 'alert-light-warning'?: string;
45
- 'border-focus'?: string;
46
- 'tooltip-background-color'?: string;
47
- 'text-color-primary'?: string;
48
- 'text-color-secondary'?: string;
49
- 'text-color-neutral'?: string;
50
- 'text-color-tertiary'?: string;
51
- 'text-color-note'?: string;
52
- 'text-color-quaternary'?: string;
53
- 'text-color-disabled'?: string;
54
- 'background-color-white-primary'?: string;
55
- 'background-color-light-primary'?: string;
56
- 'background-color-white-secondary'?: string;
57
- 'background-color-primary-dark'?: string;
58
- 'background-color-gray-5'?: string;
59
- 'background-color-gray-30'?: string;
60
- 'background-color-tertiary-light'?: string;
61
- 'background-color-gray-10'?: string;
62
- 'background-color-gray-40'?: string;
63
- 'background-color-light-blue'?: string;
64
- 'border-color-primary'?: string;
65
- 'border-color-secondary'?: string;
66
- 'border-color-neutral'?: string;
67
- 'border-color-tertiary'?: string;
68
- 'border-color-gray'?: string;
69
- 'border-color-hover'?: string;
70
- 'border-color-active'?: string;
71
- 'icon-color-main'?: string;
72
- 'icon-color-secondary'?: string;
73
- 'icon-color-quaternary'?: string;
74
- 'icon-color-disabled'?: string;
75
- 'link-btn-primary-color'?: string;
76
- 'button-color-static'?: string;
77
- 'button-color-hover'?: string;
78
- 'button-color-active'?: string;
79
- 'alert-natural'?: string;
80
- }
81
- export declare const updateCSSVariables: (variables: CSSVariables) => void;
82
- export {};
1
+ interface CSSVariables {
2
+ white?: string;
3
+ 'Gray-5'?: string;
4
+ 'Gray-10'?: string;
5
+ 'Gray-20'?: string;
6
+ 'Gray-30'?: string;
7
+ 'Gray-40'?: string;
8
+ 'Gray-50'?: string;
9
+ 'Gray-60'?: string;
10
+ 'Gray-100'?: string;
11
+ black?: string;
12
+ 'primary-static'?: string;
13
+ 'primary-hover'?: string;
14
+ 'primary-active'?: string;
15
+ 'primary-disabled'?: string;
16
+ 'secondary-static'?: string;
17
+ 'secondary-hover'?: string;
18
+ 'error-static'?: string;
19
+ 'error-hover'?: string;
20
+ 'error-active'?: string;
21
+ 'success-static'?: string;
22
+ 'success-hover'?: string;
23
+ 'success-active'?: string;
24
+ 'info-static'?: string;
25
+ 'info-hover'?: string;
26
+ 'info-active'?: string;
27
+ 'warning-static'?: string;
28
+ 'warning-hover'?: string;
29
+ 'warning-active'?: string;
30
+ 'action-static'?: string;
31
+ 'action-hover'?: string;
32
+ 'action-active'?: string;
33
+ 'color-info-primary'?: string;
34
+ 'primary-font-color'?: string;
35
+ 'placeholder-font-color'?: string;
36
+ 'warning-font-color'?: string;
37
+ 'alert-error'?: string;
38
+ 'alert-light-error'?: string;
39
+ 'alert-success'?: string;
40
+ 'alert-light-success'?: string;
41
+ 'alert-info'?: string;
42
+ 'alert-light-info'?: string;
43
+ 'alert-warning'?: string;
44
+ 'alert-light-warning'?: string;
45
+ 'border-focus'?: string;
46
+ 'tooltip-background-color'?: string;
47
+ 'text-color-primary'?: string;
48
+ 'text-color-secondary'?: string;
49
+ 'text-color-neutral'?: string;
50
+ 'text-color-tertiary'?: string;
51
+ 'text-color-note'?: string;
52
+ 'text-color-quaternary'?: string;
53
+ 'text-color-disabled'?: string;
54
+ 'background-color-white-primary'?: string;
55
+ 'background-color-light-primary'?: string;
56
+ 'background-color-white-secondary'?: string;
57
+ 'background-color-primary-dark'?: string;
58
+ 'background-color-gray-5'?: string;
59
+ 'background-color-gray-30'?: string;
60
+ 'background-color-tertiary-light'?: string;
61
+ 'background-color-gray-10'?: string;
62
+ 'background-color-gray-40'?: string;
63
+ 'background-color-light-blue'?: string;
64
+ 'border-color-primary'?: string;
65
+ 'border-color-secondary'?: string;
66
+ 'border-color-neutral'?: string;
67
+ 'border-color-tertiary'?: string;
68
+ 'border-color-gray'?: string;
69
+ 'border-color-hover'?: string;
70
+ 'border-color-active'?: string;
71
+ 'icon-color-main'?: string;
72
+ 'icon-color-secondary'?: string;
73
+ 'icon-color-quaternary'?: string;
74
+ 'icon-color-disabled'?: string;
75
+ 'link-btn-primary-color'?: string;
76
+ 'button-color-static'?: string;
77
+ 'button-color-hover'?: string;
78
+ 'button-color-active'?: string;
79
+ 'alert-natural'?: string;
80
+ }
81
+ export declare const updateCSSVariables: (variables: CSSVariables) => void;
82
+ export {};
package/package.json CHANGED
@@ -1,84 +1,84 @@
1
- {
2
- "name": "digitinary-ui",
3
- "version": "1.0.13",
4
- "description": "Digitinary UI Library",
5
- "author": "Digitinary Company",
6
- "repository": {
7
- "type": "git",
8
- "url": "digitinary-ui"
9
- },
10
- "license": "MIT",
11
- "main": "dist/index.js",
12
- "source": "src/index.js",
13
- "module": "dist/index.js",
14
- "exports": {
15
- ".": {
16
- "import": "./dist/index.js",
17
- "require": "./dist/index.js",
18
- "types": "./dist/types/index.d.ts"
19
- }
20
- },
21
- "engines": {
22
- "node": ">=10"
23
- },
24
- "keywords": [
25
- "react",
26
- "ui",
27
- "component-library"
28
- ],
29
- "scripts": {
30
- "build": "webpack --mode production",
31
- "build:types": "tsc",
32
- "lint": "eslint src --ext ts,tsx",
33
- "pre-commit": "pretty-quick --staged",
34
- "test": "jest",
35
- "prepare": "husky"
36
- },
37
- "peerDependencies": {
38
- "react": "^18.3.1",
39
- "react-dom": "^18.2.25"
40
- },
41
- "devDependencies": {
42
- "@babel/core": "^7.24.4",
43
- "@babel/preset-env": "^7.24.4",
44
- "@babel/preset-react": "^7.24.1",
45
- "@babel/preset-typescript": "^7.24.1",
46
- "@eslint/js": "^9.0.0",
47
- "@testing-library/react": "^13.4.0",
48
- "@types/jest": "^29.5.12",
49
- "@types/react": "18.3.1",
50
- "@types/react-dom": "18.2.25",
51
- "@typescript-eslint/eslint-plugin": "^7.7.0",
52
- "@typescript-eslint/parser": "^7.7.0",
53
- "babel-loader": "^8.3.0",
54
- "copy-webpack-plugin": "^12.0.2",
55
- "css-loader": "^6.7.3",
56
- "eslint": "^8.57.0",
57
- "eslint-plugin-react": "^7.34.1",
58
- "globals": "^15.0.0",
59
- "husky": "^9.0.11",
60
- "jest": "^27.4.7",
61
- "pretty-quick": "^4.0.0",
62
- "sass": "^1.75.0",
63
- "sass-loader": "^13.2.2",
64
- "style-loader": "^4.0.0",
65
- "svg-inline-loader": "^0.8.2",
66
- "ts-loader": "^9.5.1",
67
- "typescript": "^4.9.5",
68
- "typescript-eslint": "^7.7.0",
69
- "url-loader": "^4.1.1",
70
- "webpack": "^5.91.0",
71
- "webpack-bundle-analyzer": "^4.10.2",
72
- "webpack-cli": "^5.1.4",
73
- "webpack-dev-server": "^5.0.4"
74
- },
75
- "files": [
76
- "dist"
77
- ],
78
- "types": "dist/index.d.ts",
79
- "dependencies": {
80
- "@tippyjs/react": "^4.2.6",
81
- "jsx-runtime": "^1.2.0",
82
- "moment": "^2.30.1"
83
- }
84
- }
1
+ {
2
+ "name": "digitinary-ui",
3
+ "version": "1.0.14",
4
+ "description": "Digitinary UI Library",
5
+ "author": "Digitinary Company",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "digitinary-ui"
9
+ },
10
+ "license": "MIT",
11
+ "main": "dist/index.js",
12
+ "source": "src/index.js",
13
+ "module": "dist/index.js",
14
+ "exports": {
15
+ ".": {
16
+ "import": "./dist/index.js",
17
+ "require": "./dist/index.js",
18
+ "types": "./dist/types/index.d.ts"
19
+ }
20
+ },
21
+ "engines": {
22
+ "node": ">=10"
23
+ },
24
+ "keywords": [
25
+ "react",
26
+ "ui",
27
+ "component-library"
28
+ ],
29
+ "scripts": {
30
+ "build": "webpack --mode production",
31
+ "build:types": "tsc",
32
+ "lint": "eslint src --ext ts,tsx",
33
+ "pre-commit": "pretty-quick --staged",
34
+ "test": "jest",
35
+ "prepare": "husky"
36
+ },
37
+ "peerDependencies": {
38
+ "react": "^18.3.1",
39
+ "react-dom": "^18.2.25"
40
+ },
41
+ "devDependencies": {
42
+ "@babel/core": "^7.24.4",
43
+ "@babel/preset-env": "^7.24.4",
44
+ "@babel/preset-react": "^7.24.1",
45
+ "@babel/preset-typescript": "^7.24.1",
46
+ "@eslint/js": "^9.0.0",
47
+ "@testing-library/react": "^13.4.0",
48
+ "@types/jest": "^29.5.12",
49
+ "@types/react": "18.3.1",
50
+ "@types/react-dom": "18.2.25",
51
+ "@typescript-eslint/eslint-plugin": "^7.7.0",
52
+ "@typescript-eslint/parser": "^7.7.0",
53
+ "babel-loader": "^8.3.0",
54
+ "copy-webpack-plugin": "^12.0.2",
55
+ "css-loader": "^6.7.3",
56
+ "eslint": "^8.57.0",
57
+ "eslint-plugin-react": "^7.34.1",
58
+ "globals": "^15.0.0",
59
+ "husky": "^9.0.11",
60
+ "jest": "^27.4.7",
61
+ "pretty-quick": "^4.0.0",
62
+ "sass": "^1.75.0",
63
+ "sass-loader": "^13.2.2",
64
+ "style-loader": "^4.0.0",
65
+ "svg-inline-loader": "^0.8.2",
66
+ "ts-loader": "^9.5.1",
67
+ "typescript": "^4.9.5",
68
+ "typescript-eslint": "^7.7.0",
69
+ "url-loader": "^4.1.1",
70
+ "webpack": "^5.91.0",
71
+ "webpack-bundle-analyzer": "^4.10.2",
72
+ "webpack-cli": "^5.1.4",
73
+ "webpack-dev-server": "^5.0.4"
74
+ },
75
+ "files": [
76
+ "dist"
77
+ ],
78
+ "types": "dist/index.d.ts",
79
+ "dependencies": {
80
+ "@tippyjs/react": "^4.2.6",
81
+ "jsx-runtime": "^1.2.0",
82
+ "moment": "^2.30.1"
83
+ }
84
+ }