@evoke-platform/ui-components 1.0.0-dev.184 → 1.0.0-dev.187

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 (123) hide show
  1. package/README.md +1 -0
  2. package/dist/published/components/core/Autocomplete/Autocomplete.d.ts +3 -3
  3. package/dist/published/components/core/Autocomplete/Autocomplete.js +5 -5
  4. package/dist/published/components/core/Autocomplete/Autocomplete.test.d.ts +1 -0
  5. package/dist/published/components/core/Autocomplete/Autocomplete.test.js +11 -0
  6. package/dist/published/components/core/Autocomplete/index.d.ts +2 -1
  7. package/dist/published/components/core/LocalizationProvider/LocalizationProvider.js +6 -4
  8. package/dist/published/components/core/Select/Select.d.ts +1 -2
  9. package/dist/published/components/core/Snackbar/Snackbar.d.ts +2 -2
  10. package/dist/published/components/core/TextField/TextField.js +4 -5
  11. package/dist/published/components/core/TextField/TextField.test.js +9 -9
  12. package/dist/published/components/core/Typography/index.js +1 -0
  13. package/dist/published/components/core/index.d.ts +4 -2
  14. package/dist/published/components/custom/BuilderGrid/EmptyContent.d.ts +1 -1
  15. package/dist/published/components/custom/BuilderGrid/EmptyContent.js +1 -0
  16. package/dist/published/components/custom/CriteriaBuilder/CriteriaBuilder.d.ts +7 -3
  17. package/dist/published/components/custom/CriteriaBuilder/CriteriaBuilder.js +55 -17
  18. package/dist/published/components/custom/CriteriaBuilder/ValueEditor.js +38 -18
  19. package/dist/published/components/custom/DataGrid/Toolbar.d.ts +2 -1
  20. package/dist/published/components/custom/FormField/AddressFieldComponent/AddressFieldComponent.test.d.ts +1 -0
  21. package/dist/published/components/custom/FormField/AddressFieldComponent/AddressFieldComponent.test.js +89 -0
  22. package/dist/published/components/custom/FormField/AddressFieldComponent/addressFieldComponent.d.ts +13 -1
  23. package/dist/published/components/custom/FormField/AddressFieldComponent/addressFieldComponent.js +8 -13
  24. package/dist/published/components/custom/FormField/BooleanSelect/BooleanSelect.d.ts +3 -1
  25. package/dist/published/components/custom/FormField/BooleanSelect/BooleanSelect.js +2 -3
  26. package/dist/published/components/custom/FormField/BooleanSelect/BooleanSelect.test.d.ts +1 -0
  27. package/dist/published/components/custom/FormField/BooleanSelect/BooleanSelect.test.js +32 -0
  28. package/dist/published/components/custom/FormField/DatePickerSelect/DatePickerSelect.d.ts +3 -1
  29. package/dist/published/components/custom/FormField/DatePickerSelect/DatePickerSelect.js +2 -3
  30. package/dist/published/components/custom/FormField/DatePickerSelect/DatePickerSelect.test.d.ts +1 -0
  31. package/dist/published/components/custom/FormField/DatePickerSelect/DatePickerSelect.test.js +73 -0
  32. package/dist/published/components/custom/FormField/FileUpload/FileUpload.d.ts +3 -1
  33. package/dist/published/components/custom/FormField/FileUpload/FileUpload.js +7 -6
  34. package/dist/published/components/custom/FormField/FormField.d.ts +10 -6
  35. package/dist/published/components/custom/FormField/FormField.js +2 -3
  36. package/dist/published/components/custom/FormField/InputFieldComponent/InputFieldComponent.d.ts +3 -1
  37. package/dist/published/components/custom/FormField/InputFieldComponent/InputFieldComponent.js +3 -5
  38. package/dist/published/components/custom/FormField/InputFieldComponent/InputFieldComponent.test.d.ts +1 -0
  39. package/dist/published/components/custom/FormField/InputFieldComponent/InputFieldComponent.test.js +52 -0
  40. package/dist/published/components/custom/FormField/Select/Select.d.ts +3 -1
  41. package/dist/published/components/custom/FormField/Select/Select.js +6 -5
  42. package/dist/published/components/custom/FormField/Select/Select.test.d.ts +1 -0
  43. package/dist/published/components/custom/FormField/Select/Select.test.js +68 -0
  44. package/dist/published/components/custom/FormField/TimePickerSelect/TimePickerSelect.d.ts +3 -1
  45. package/dist/published/components/custom/FormField/TimePickerSelect/TimePickerSelect.js +7 -6
  46. package/dist/published/components/custom/Menubar/Menubar.d.ts +2 -4
  47. package/dist/published/components/custom/Menubar/Menubar.js +1 -4
  48. package/dist/published/components/custom/MultiSelect/MultiSelect.d.ts +5 -6
  49. package/dist/published/components/custom/MultiSelect/MultiSelect.js +9 -5
  50. package/dist/published/components/custom/MultiSelect/SortableItem.js +1 -0
  51. package/dist/published/components/custom/RepeatableField/RepeatableField.d.ts +2 -3
  52. package/dist/published/components/custom/RepeatableField/RepeatableField.js +2 -2
  53. package/dist/published/components/custom/UserAvatar/UserAvatar.js +5 -3
  54. package/dist/published/components/custom/util.js +2 -1
  55. package/dist/published/icons/custom/Inherited.d.ts +6 -1
  56. package/dist/published/icons/custom/Overrides.d.ts +22 -2
  57. package/dist/published/icons/custom/TrashCan.d.ts +22 -2
  58. package/dist/published/index.d.ts +2 -1
  59. package/dist/published/index.js +2 -3
  60. package/dist/published/stories/Accordion.stories.d.ts +3 -2
  61. package/dist/published/stories/Alert.stories.d.ts +3 -2
  62. package/dist/published/stories/Appbar.stories.js +1 -1
  63. package/dist/published/stories/Autocomplete.stories.d.ts +3 -20
  64. package/dist/published/stories/Autocomplete.stories.js +1 -1
  65. package/dist/published/stories/Avatar.stories.js +1 -1
  66. package/dist/published/stories/Backdrop.stories.d.ts +3 -2
  67. package/dist/published/stories/Backdrop.stories.js +1 -1
  68. package/dist/published/stories/Badge.stories.d.ts +3 -2
  69. package/dist/published/stories/Box.stories.d.ts +2 -2
  70. package/dist/published/stories/Box.stories.js +2 -2
  71. package/dist/published/stories/Breadcrumbs.stories.d.ts +3 -2
  72. package/dist/published/stories/Button.stories.d.ts +3 -2
  73. package/dist/published/stories/ButtonGroup.stories.d.ts +3 -2
  74. package/dist/published/stories/Card.stories.d.ts +3 -2
  75. package/dist/published/stories/Checkbox.stories.d.ts +3 -2
  76. package/dist/published/stories/Chip.stories.d.ts +3 -2
  77. package/dist/published/stories/CircularProgress.stories.d.ts +3 -2
  78. package/dist/published/stories/Collapse.stories.d.ts +3 -2
  79. package/dist/published/stories/Container.stories.d.ts +3 -2
  80. package/dist/published/stories/CriteriaBuilder.stories.d.ts +5 -4
  81. package/dist/published/stories/CriteriaBuilder.stories.js +1 -1
  82. package/dist/published/stories/DataGrid.stories.js +1 -1
  83. package/dist/published/stories/Dialog.stories.d.ts +3 -2
  84. package/dist/published/stories/Dialog.stories.js +3 -3
  85. package/dist/published/stories/Divider.stories.d.ts +3 -2
  86. package/dist/published/stories/Drawer.stories.d.ts +3 -2
  87. package/dist/published/stories/FormControl.stories.d.ts +3 -2
  88. package/dist/published/stories/FormControlLabel.stories.d.ts +3 -2
  89. package/dist/published/stories/FormControlLabel.stories.js +1 -1
  90. package/dist/published/stories/FormField.stories.d.ts +12 -10
  91. package/dist/published/stories/FormGroup.stories.d.ts +3 -2
  92. package/dist/published/stories/FormHelperText.stories.d.ts +3 -2
  93. package/dist/published/stories/FormLabel.stories.d.ts +3 -2
  94. package/dist/published/stories/Grid.stories.d.ts +3 -2
  95. package/dist/published/stories/IconButton.stories.d.ts +3 -2
  96. package/dist/published/stories/LinearProgress.stories.d.ts +3 -2
  97. package/dist/published/stories/Link.stories.d.ts +3 -2
  98. package/dist/published/stories/List.stories.d.ts +3 -2
  99. package/dist/published/stories/List.stories.js +1 -1
  100. package/dist/published/stories/Menu.stories.d.ts +3 -2
  101. package/dist/published/stories/Menu.stories.js +2 -2
  102. package/dist/published/stories/MenuBar.stories.js +2 -1
  103. package/dist/published/stories/Palette.stories.js +1 -1
  104. package/dist/published/stories/Paper.stories.d.ts +3 -2
  105. package/dist/published/stories/RadioGroup.stories.d.ts +3 -2
  106. package/dist/published/stories/Skeleton.stories.d.ts +3 -2
  107. package/dist/published/stories/Stack.stories.d.ts +3 -2
  108. package/dist/published/stories/Stepper.stories.d.ts +3 -2
  109. package/dist/published/stories/Switch.stories.d.ts +3 -2
  110. package/dist/published/stories/Table.stories.d.ts +3 -2
  111. package/dist/published/stories/Tabs.stories.d.ts +3 -2
  112. package/dist/published/stories/TextField.stories.d.ts +4 -3
  113. package/dist/published/stories/TextField.stories.js +2 -2
  114. package/dist/published/stories/TimePicker.stories.js +1 -1
  115. package/dist/published/stories/TimePickerSelect.stories.d.ts +6 -2
  116. package/dist/published/stories/TimePickerSelect.stories.js +2 -1
  117. package/dist/published/stories/ToggleButton.stories.d.ts +3 -2
  118. package/dist/published/stories/ToggleButton.stories.js +4 -4
  119. package/dist/published/stories/Typography.stories.js +1 -1
  120. package/dist/published/theme/UIThemeProvider.d.ts +4 -1
  121. package/dist/published/theme/UIThemeProvider.js +1 -1
  122. package/dist/published/theme/defaultTheme.js +5 -5
  123. package/package.json +31 -14
@@ -4,7 +4,7 @@ import { defaultTheme } from './defaultTheme';
4
4
  function UIThemeProvider(props) {
5
5
  var _a, _b, _c;
6
6
  const { args, children } = props;
7
- const theme = !!((_c = (_b = (_a = args === null || args === void 0 ? void 0 : args.theme) === null || _a === void 0 ? void 0 : _a.palette) === null || _b === void 0 ? void 0 : _b.primary) === null || _c === void 0 ? void 0 : _c.main) ? createTheme(args === null || args === void 0 ? void 0 : args.theme) : defaultTheme;
7
+ const theme = ((_c = (_b = (_a = args === null || args === void 0 ? void 0 : args.theme) === null || _a === void 0 ? void 0 : _a.palette) === null || _b === void 0 ? void 0 : _b.primary) === null || _c === void 0 ? void 0 : _c.main) ? createTheme(args === null || args === void 0 ? void 0 : args.theme) : defaultTheme;
8
8
  return React.createElement(ThemeProvider, { theme: theme }, children);
9
9
  }
10
10
  export default UIThemeProvider;
@@ -9,7 +9,7 @@ export const defaultTheme = createTheme({
9
9
  secondary: {
10
10
  main: '#DFE3E8',
11
11
  light: '#F1F6FC',
12
- dark: '#C7C9CC'
12
+ dark: '#C7C9CC',
13
13
  },
14
14
  info: {
15
15
  main: '#1890FF',
@@ -95,9 +95,9 @@ export const defaultTheme = createTheme({
95
95
  styleOverrides: {
96
96
  root: {
97
97
  textTransform: 'none',
98
- fontWeight: 700
99
- }
100
- }
101
- }
98
+ fontWeight: 700,
99
+ },
100
+ },
101
+ },
102
102
  },
103
103
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evoke-platform/ui-components",
3
- "version": "1.0.0-dev.184",
3
+ "version": "1.0.0-dev.187",
4
4
  "description": "",
5
5
  "main": "dist/published/index.js",
6
6
  "module": "dist/published/index.js",
@@ -22,12 +22,13 @@
22
22
  "prepublish": "rm -rf ./dist && tsc && npm run copy-styles",
23
23
  "storybook": "start-storybook -p 6006",
24
24
  "build-storybook": "build-storybook",
25
- "lint": "prettier --check src/**/*.*",
26
- "format": "prettier --write .",
27
- "eslint": "eslint . --ext .ts, --ext .tsx",
28
- "eslint:fix": "eslint . --ext .ts, --ext .tsx --fix",
29
- "prettier:fix": "prettier --write \"**/*.{ts,tsx,md}\"",
30
- "lint:fix": "npm run eslint:fix && npm run prettier:fix"
25
+ "lint": "npm run prettier:check && npm run eslint",
26
+ "lint:fix": "npm run eslint:fix && npm run prettier:fix",
27
+ "prettier:cli": "prettier \"**/*.tsx\" \"**/*.js\" \"**/*.json\" \"**/*.md\"",
28
+ "prettier:check": "npm run prettier:cli -- -l",
29
+ "prettier:fix": "npm run prettier:cli -- --write",
30
+ "eslint": "eslint src",
31
+ "eslint:fix": "npm run eslint -- --fix"
31
32
  },
32
33
  "author": "",
33
34
  "license": "MIT",
@@ -44,21 +45,27 @@
44
45
  "@storybook/testing-library": "^0.0.11",
45
46
  "@testing-library/jest-dom": "^5.16.4",
46
47
  "@testing-library/react": "^13.3.0",
48
+ "@testing-library/user-event": "^14.5.2",
47
49
  "@types/jest": "^28.1.4",
48
50
  "@types/node": "^17.0.41",
49
51
  "@types/react": "^17.0.49",
50
52
  "@types/react-dom": "^18.0.5",
53
+ "@typescript-eslint/eslint-plugin": "^5.52.0",
51
54
  "babel-jest": "^28.1.2",
52
55
  "babel-loader": "^8.2.5",
53
56
  "copyfiles": "^2.4.1",
54
- "eslint": "^8.22.0",
55
- "eslint-plugin-prettier": "^4.2.1",
57
+ "eslint": "^8.57.0",
58
+ "eslint-config-prettier": "^8.6.0",
59
+ "eslint-plugin-jest-dom": "^5.2.0",
60
+ "eslint-plugin-no-inline-styles": "^1.0.5",
61
+ "eslint-plugin-prettier": "^5.1.2",
62
+ "eslint-plugin-testing-library": "^6.2.0",
56
63
  "husky": "^4.3.8",
57
64
  "is-ci": "^3.0.1",
58
65
  "jest": "^28.1.2",
59
66
  "jest-environment-jsdom": "^28.1.2",
60
67
  "lint-staged": "^13.0.1",
61
- "prettier": "^2.6.2",
68
+ "prettier": "^3.0.0",
62
69
  "react": "^18.1.0",
63
70
  "react-dom": "^18.1.0",
64
71
  "rimraf": "^3.0.2",
@@ -85,7 +92,7 @@
85
92
  "@mui/x-data-grid": "^6.2.1",
86
93
  "@mui/x-date-pickers": "^5.0.13",
87
94
  "@react-querybuilder/dnd": "^5.4.1",
88
- "@react-querybuilder/material": "^5.4.1",
95
+ "@react-querybuilder/material": "^6.5.0",
89
96
  "@types/react-input-mask": "^3.0.2",
90
97
  "@typescript-eslint/parser": "^5.35.1",
91
98
  "@typescript-eslint/typescript-estree": "^5.35.1",
@@ -94,7 +101,6 @@
94
101
  "devextreme-dist": "^23.1.5",
95
102
  "eslint-plugin-no-inline-styles": "^1.0.5",
96
103
  "formiojs": "^4.15.0-rc.23",
97
- "lodash-es": "^4.17.21",
98
104
  "pluralize": "^8.0.0",
99
105
  "react-dropzone": "^14.2.2",
100
106
  "react-input-mask": "^2.0.4",
@@ -102,10 +108,21 @@
102
108
  "react-querybuilder": "^6.0.2"
103
109
  },
104
110
  "lint-staged": {
105
- "*": "prettier --write"
111
+ "*.{js,jsx,ts,tsx,json,css,md}": [
112
+ "npm run lint:fix"
113
+ ]
114
+ },
115
+ "husky": {
116
+ "hooks": {
117
+ "pre-commit": "npx lint-staged"
118
+ }
106
119
  },
107
120
  "jest": {
108
121
  "verbose": true,
109
- "testEnvironment": "jsdom"
122
+ "testEnvironment": "jsdom",
123
+ "testPathIgnorePatterns": [
124
+ "/node_modules/",
125
+ "<rootDir>/dist/"
126
+ ]
110
127
  }
111
128
  }