@ttoss/components 1.28.6 → 1.28.7

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 (2) hide show
  1. package/README.md +3 -2
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -27,7 +27,9 @@ import { Box, Button, Flex, Text } from '@ttoss/ui';
27
27
  /**
28
28
  * See https://reactcommunity.org/react-modal/accessibility/#app-element
29
29
  */
30
- // Modal.setAppElement('#root'); // You can set the app element here or in prop `appElement`.
30
+ // Modal.setAppElement('#root'); Prefer using this static method over setting it on the component.
31
+
32
+ Modal.setAppElement('#modal-root');
31
33
 
32
34
  const Component = () => {
33
35
  const [isOpen, setIsOpen] = React.useState(false);
@@ -42,7 +44,6 @@ const Component = () => {
42
44
  action('onRequestClose')();
43
45
  setIsOpen(false);
44
46
  }}
45
- appElement={document.getElementById('modal-root') as HTMLElement}
46
47
  style={{
47
48
  overlay: {
48
49
  backgroundColor: 'primary',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ttoss/components",
3
- "version": "1.28.6",
3
+ "version": "1.28.7",
4
4
  "description": "React components for ttoss ecosystem.",
5
5
  "author": "ttoss",
6
6
  "contributors": [
@@ -24,7 +24,7 @@
24
24
  },
25
25
  "peerDependencies": {
26
26
  "react": ">=16.8.0",
27
- "@ttoss/ui": "^1.36.6"
27
+ "@ttoss/ui": "^1.36.7"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@types/jest": "^29.5.1",
@@ -33,7 +33,7 @@
33
33
  "tsup": "^6.7.0",
34
34
  "@ttoss/config": "^1.30.0",
35
35
  "@ttoss/test-utils": "^1.23.0",
36
- "@ttoss/ui": "^1.36.6"
36
+ "@ttoss/ui": "^1.36.7"
37
37
  },
38
38
  "keywords": [
39
39
  "React",