@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.
- package/.env.playwright +9 -0
- package/.env.playwright.dist +9 -0
- package/.eslintrc-ts +40 -0
- package/README.md +18 -1
- package/dist/react-ui.css +4 -4
- package/dist/react-ui.development.css +8 -0
- package/dist/react-ui.development.js +57 -47
- package/dist/react-ui.js +1 -1
- package/jest.config-ts.js +34 -0
- package/package.json +25 -6
- package/playwright-ct.config.ts +68 -0
- package/src/components/Alert/Alert.jsx +2 -2
- package/src/components/Button/Button.jsx +5 -5
- package/src/components/Button/README.md +1 -1
- package/src/components/ButtonGroup/ButtonGroup.jsx +2 -2
- package/src/components/Card/Card.module.scss +1 -0
- package/src/components/Card/CardFooter.jsx +2 -2
- package/src/components/Card/README.md +2 -0
- package/src/components/Card/_theme.scss +2 -0
- package/src/components/CheckboxField/CheckboxField.jsx +3 -3
- package/src/components/FileInputField/FileInputField.jsx +21 -8
- package/src/components/FileInputField/FileInputField.module.scss +4 -0
- package/src/components/FormLayout/FormLayout.jsx +2 -2
- package/src/components/FormLayout/FormLayoutCustomField.jsx +5 -5
- package/src/components/Grid/Grid.jsx +2 -2
- package/src/components/Grid/GridSpan.jsx +2 -2
- package/src/components/InputGroup/InputGroup.jsx +25 -5
- package/src/components/InputGroup/InputGroup.module.scss +2 -1
- package/src/components/InputGroup/README.md +69 -14
- package/src/components/Modal/Modal.jsx +26 -8
- package/src/components/Modal/ModalBody.jsx +2 -2
- package/src/components/Modal/ModalContent.jsx +2 -2
- package/src/components/Modal/_helpers/dialogOnClickHandler.js +6 -0
- package/src/components/Popover/Popover.jsx +5 -5
- package/src/components/Radio/Radio.jsx +3 -3
- package/src/components/ScrollView/ScrollView.jsx +42 -12
- package/src/components/ScrollView/_hooks/useScrollPositionHook.js +4 -4
- package/src/components/SelectField/SelectField.jsx +9 -6
- package/src/components/Table/Table.jsx +1 -1
- package/src/components/Table/_components/TableBodyCell/TableBodyCell.jsx +1 -1
- package/src/components/Table/_components/TableHeaderCell/TableHeaderCell.jsx +1 -1
- package/src/components/Tabs/TabsItem.jsx +3 -3
- package/src/components/Text/Text.jsx +2 -2
- package/src/components/TextArea/TextArea.jsx +3 -3
- package/src/components/TextField/TextField.jsx +11 -8
- package/src/components/Toggle/Toggle.jsx +3 -3
- package/src/components/Toolbar/Toolbar.jsx +2 -2
- package/src/components/Toolbar/ToolbarGroup.jsx +2 -2
- package/src/components/Toolbar/ToolbarItem.jsx +2 -2
- package/src/helpers/isChildrenEmpty/README.md +57 -0
- package/src/helpers/isChildrenEmpty/index.js +1 -0
- package/src/index.js +1 -0
- package/src/providers/globalProps/GlobalPropsProvider.jsx +1 -1
- package/src/providers/translations/TranslationsProvider.jsx +1 -1
- package/src/styles/settings/_breakpoints.scss +2 -0
- package/src/theme.scss +2 -0
- package/src/translations/en.js +1 -0
- package/tsconfig.json +27 -0
- /package/src/{components/_helpers → helpers/isChildrenEmpty}/isChildrenEmpty.js +0 -0
package/.env.playwright
ADDED
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]:
|
|
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
|