@react-ui-org/react-ui 0.59.3 → 0.61.0

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 (59) hide show
  1. package/.env.playwright +9 -0
  2. package/.env.playwright.dist +9 -0
  3. package/.eslintrc-ts +40 -0
  4. package/README.md +18 -1
  5. package/dist/react-ui.css +4 -4
  6. package/dist/react-ui.development.css +8 -0
  7. package/dist/react-ui.development.js +57 -47
  8. package/dist/react-ui.js +1 -1
  9. package/jest.config-ts.js +34 -0
  10. package/package.json +25 -6
  11. package/playwright-ct.config.ts +68 -0
  12. package/src/components/Alert/Alert.jsx +2 -2
  13. package/src/components/Button/Button.jsx +5 -5
  14. package/src/components/Button/README.md +1 -1
  15. package/src/components/ButtonGroup/ButtonGroup.jsx +2 -2
  16. package/src/components/Card/Card.module.scss +1 -0
  17. package/src/components/Card/CardFooter.jsx +2 -2
  18. package/src/components/Card/README.md +2 -0
  19. package/src/components/Card/_theme.scss +2 -0
  20. package/src/components/CheckboxField/CheckboxField.jsx +3 -3
  21. package/src/components/FileInputField/FileInputField.jsx +21 -8
  22. package/src/components/FileInputField/FileInputField.module.scss +4 -0
  23. package/src/components/FormLayout/FormLayout.jsx +2 -2
  24. package/src/components/FormLayout/FormLayoutCustomField.jsx +5 -5
  25. package/src/components/Grid/Grid.jsx +2 -2
  26. package/src/components/Grid/GridSpan.jsx +2 -2
  27. package/src/components/InputGroup/InputGroup.jsx +25 -5
  28. package/src/components/InputGroup/InputGroup.module.scss +2 -1
  29. package/src/components/InputGroup/README.md +69 -14
  30. package/src/components/Modal/Modal.jsx +26 -8
  31. package/src/components/Modal/ModalBody.jsx +2 -2
  32. package/src/components/Modal/ModalContent.jsx +2 -2
  33. package/src/components/Modal/_helpers/dialogOnClickHandler.js +6 -0
  34. package/src/components/Popover/Popover.jsx +5 -5
  35. package/src/components/Radio/Radio.jsx +3 -3
  36. package/src/components/ScrollView/ScrollView.jsx +42 -12
  37. package/src/components/ScrollView/_hooks/useScrollPositionHook.js +4 -4
  38. package/src/components/SelectField/SelectField.jsx +9 -6
  39. package/src/components/Table/Table.jsx +1 -1
  40. package/src/components/Table/_components/TableBodyCell/TableBodyCell.jsx +1 -1
  41. package/src/components/Table/_components/TableHeaderCell/TableHeaderCell.jsx +1 -1
  42. package/src/components/Tabs/TabsItem.jsx +3 -3
  43. package/src/components/Text/Text.jsx +2 -2
  44. package/src/components/TextArea/TextArea.jsx +3 -3
  45. package/src/components/TextField/TextField.jsx +11 -8
  46. package/src/components/Toggle/Toggle.jsx +3 -3
  47. package/src/components/Toolbar/Toolbar.jsx +2 -2
  48. package/src/components/Toolbar/ToolbarGroup.jsx +2 -2
  49. package/src/components/Toolbar/ToolbarItem.jsx +2 -2
  50. package/src/helpers/isChildrenEmpty/README.md +57 -0
  51. package/src/helpers/isChildrenEmpty/index.js +1 -0
  52. package/src/index.js +1 -0
  53. package/src/providers/globalProps/GlobalPropsProvider.jsx +1 -1
  54. package/src/providers/translations/TranslationsProvider.jsx +1 -1
  55. package/src/styles/settings/_breakpoints.scss +2 -0
  56. package/src/theme.scss +2 -0
  57. package/src/translations/en.js +1 -0
  58. package/tsconfig.json +27 -0
  59. /package/src/{components/_helpers → helpers/isChildrenEmpty}/isChildrenEmpty.js +0 -0
@@ -0,0 +1,9 @@
1
+ ###########################
2
+ # Playwright configuration #
3
+ ###########################
4
+
5
+ # Number of workers to use to run Playwright tests
6
+ PW_WORKERS=1
7
+
8
+ # Port used by Playwright Component Testing to serve the test files
9
+ PW_CT_PORT=3100
@@ -0,0 +1,9 @@
1
+ ###########################
2
+ # Playwright configuration #
3
+ ###########################
4
+
5
+ # Number of workers to use to run Playwright tests
6
+ PW_WORKERS=1
7
+
8
+ # Port used by Playwright Component Testing to serve the test files
9
+ PW_CT_PORT=3100
package/.eslintrc-ts ADDED
@@ -0,0 +1,40 @@
1
+ {
2
+ "extends": [
3
+ "@visionappscz/eslint-config-visionapps",
4
+ "airbnb-typescript",
5
+ "plugin:@typescript-eslint/recommended",
6
+ "plugin:@typescript-eslint/recommended-type-checked",
7
+ "plugin:deprecation/recommended",
8
+ "plugin:typescript-sort-keys/recommended",
9
+ ],
10
+ "env": {
11
+ "browser": true,
12
+ "jest": true
13
+ },
14
+ "overrides": [
15
+ {
16
+ "files": [
17
+ "*.spec.tsx",
18
+ "*.story.tsx",
19
+ ],
20
+ "rules": {
21
+ "@typescript-eslint/unbound-method": "off"
22
+ }
23
+ }
24
+ ],
25
+ "parser": "@typescript-eslint/parser",
26
+ "parserOptions": {
27
+ "projectService": true,
28
+ "project": "./tsconfig.json"
29
+ },
30
+ "plugins": [
31
+ "@typescript-eslint"
32
+ ],
33
+ "rules": {
34
+ "@typescript-eslint/consistent-type-definitions": ["error", "type"],
35
+ "@typescript-eslint/consistent-type-exports": ["error"],
36
+ "@typescript-eslint/consistent-type-imports": ["error"],
37
+ "import/prefer-default-export": "off",
38
+ "no-console": ["error"]
39
+ }
40
+ }
package/README.md CHANGED
@@ -110,6 +110,23 @@ We appreciate any contributions you might make. 🙏
110
110
  Please check out our [Contributing Guide][gh-contributing]. It includes
111
111
  contribution guidelines and information on how to run and develop the project.
112
112
 
113
+ ## Testing
114
+
115
+ All contributions should pass linting and tests before being merged.
116
+ Please follow our [Testing Guidelines][gh-testing], which describe
117
+ how to properly run all tests (linters, unit tests, visual tests)
118
+ in Docker containers to ensure consistency.
119
+
120
+ ## Releasing
121
+
122
+ React UI uses a fully automated release process.
123
+ If you plan to release a new version,
124
+ please follow our [Releasing Guide][gh-releasing],
125
+ which explains all necessary steps, including version bumping
126
+ and changelog management.
127
+
113
128
  [rui-docs]: https://react-ui.io
114
129
  [RACOM]: https://www.racom.eu
115
- [gh-contributing]: https://github.com/react-ui-org/react-ui/blob/master/CONTRIBUTING.md
130
+ [gh-contributing]: ./src/docs/contribute/general-guidelines.md
131
+ [gh-testing]: ./src/docs/contribute/testing-guidelines.md
132
+ [gh-releasing]: ./src/docs/contribute/releasing.md